WebApplicationInformation.TrustLevel Propriedade

Definição

Obtém o nível de confiança da aplicação.

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

Valor de Propriedade

O nível de confiança da aplicação.

Exemplos

O exemplo seguinte mostra como obter a informação ao nível de confiança da aplicação.

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

Observações

Esta propriedade requer permissões adequadas para ser acedida. Consulte a secção de Permissões.

Aplica-se a