Partage via


WebApplicationInformation.TrustLevel Propriété

Définition

Obtient le niveau de confiance de l'application.

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

Valeur de propriété

String

Niveau de confiance de l'application.

Exemples

L’exemple suivant montre comment obtenir les informations au niveau de l’approbation de l’application.

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

Remarques

Cette propriété nécessite des autorisations appropriées à accéder. Reportez-vous à la section Autorisations.

S’applique à