WebApplicationInformation.TrustLevel Eigenschap

Definitie

Hiermee haalt u het vertrouwensniveau van de toepassing op.

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

Waarde van eigenschap

Het vertrouwensniveau van de toepassing.

Voorbeelden

In het volgende voorbeeld ziet u hoe u informatie op toepassingsvertrouwensniveau kunt verkrijgen.

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

Opmerkingen

Voor deze eigenschap moeten de juiste machtigingen worden geopend. Raadpleeg de sectie Machtigingen.

Van toepassing op