WebApplicationInformation.TrustLevel 属性

定义

获取应用程序的信任级别。

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

属性值

应用程序的信任级别。

示例

以下示例演示如何获取应用程序信任级别信息。

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

注解

此属性需要适当的权限才能访问。 请参阅权限部分。

适用于