WebApplicationInformation.TrustLevel Eigenschaft

Definition

Ruft die Vertrauensstufe der Anwendung ab.

public:
 property System::String ^ TrustLevel { System::String ^ get(); };
public string TrustLevel { get; }
member this.TrustLevel : string
Public ReadOnly Property TrustLevel As String

Eigenschaftswert

Die Vertrauensstufe der Anwendung.

Beispiele

Das folgende Beispiel zeigt, wie Sie die Informationen auf Anwendungsebene abrufen.

public string GetApplicationTrustLevel()
{
    // Get the name of the application trust level.
    return (string.Format(
        "Application trust level: {0}",
        ApplicationInformation.TrustLevel));
}
Public Function GetApplicationTrustLevel() As String
    ' Get the name of the application trust level.
    Return String.Format( _
    "Application trust level: {0}", _
    ApplicationInformation.TrustLevel())
End Function 'GetApplicationTrustLevel

Hinweise

Für diese Eigenschaft sind geeignete Berechtigungen erforderlich, um darauf zugreifen zu können. Weitere Informationen finden Sie im Abschnitt "Berechtigungen".

Gilt für: