Share via


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

備註

此屬性需要存取適當的許可權。 請參閱許可權一節。

適用於