Compartir vía


WebApplicationInformation.TrustLevel Propiedad

Definición

Obtiene el nivel de confianza de la aplicación.

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

Valor de propiedad

Nivel de confianza de la aplicación.

Ejemplos

En el ejemplo siguiente se muestra cómo obtener la información de nivel de confianza de la aplicación.

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

Comentarios

Esta propiedad requiere que se tenga acceso a los permisos adecuados. Consulte la sección Permisos.

Se aplica a