Bagikan melalui


TrustLevel.Name Properti

Definisi

Mendapatkan atau mengatur tingkat keamanan bernama yang dipetakan ke file kebijakan.

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

Nilai Properti

Name yang dipetakan ke file kebijakan.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan Name properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk TrustLevel kelas .

// 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)

Berlaku untuk

Lihat juga