TrustSection.Level プロパティ

定義

アプリケーションを実行するセキュリティ レベルの名前を取得または設定します。

public:
 property System::String ^ Level { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("level", DefaultValue="Full", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Level { get; set; }
[<System.Configuration.ConfigurationProperty("level", DefaultValue="Full", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Level : string with get, set
Public Property Level As String

プロパティ値

信頼レベルの名前。 既定値は、"Full" です。

属性

次のコード例は、 Level プロパティの使用方法を示しています。 このコード例は、 TrustSection クラスに提供されるより大きな例の一部です。

// Display Level property
Console.WriteLine("Level: {0}", configSection.Level);
' Display Level property.
Console.WriteLine("Level: {0}", configSection.Level)

注釈

Level プロパティは、アプリケーションを実行するセキュリティ レベルを指定します。 既定値は、"Full" です。

使用可能な信頼レベルは 5 つあります。

  • 完全

  • High

  • 中程度

  • 最小限

名前付きレベルは、<securityPolicy><trustLevel>要素で定義されているセキュリティ レベルに対応します。

適用対象

こちらもご覧ください