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

Значение свойства

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)

Применяется к

См. также раздел