共用方式為


TrustLevel.Name 屬性

定義

取得或設定一個命名的安全等級,該等級映射到政策檔案。

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

屬性值

Name那個會映射到一個政策檔案。

屬性

範例

以下程式碼範例示範如何使用該 Name 屬性。 此程式碼範例是本類別更大範例 TrustLevel 的一部分。

// Get the Name of the TrustLevel object.
Console.WriteLine("Name: {0}", TrustLevel1.Name);
' Get the Name of the TrustLevel object.
Console.WriteLine("Name: {0}", TrustLevel1.Name)

適用於

另請參閱