WebApplicationInformation.TrustLevel Property

 

Gets the application trust level.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public string TrustLevel { get; }

Property Value

Type: System.String

The application trust level.

This property requires appropriate permissions to be accessed. Refer to the Permissions section.

The following example shows how to obtain the application-trust-level information.

public string GetApplicationTrustLevel()
{
    // Get the name of the application trust level.
    return (string.Format(
        "Application trust level: {0}",
        ApplicationInformation.TrustLevel));
}

.NET Framework
Available since 2.0
Return to top
Show: