Aracılığıyla paylaş


TrustLevel.Name Özellik

Tanım

İlke dosyasına eşlenen adlandırılmış bir güvenlik düzeyini alır veya ayarlar.

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

Özellik Değeri

String

İlke Name dosyasına eşlenen.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin nasıl kullanılacağını Name gösterir. Bu kod örneği, sınıfı için TrustLevel sağlanan daha büyük bir örneğin parçasıdır.

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

Şunlara uygulanır

Ayrıca bkz.