Sdílet prostřednictvím


TrustLevel.Name Vlastnost

Definice

Získá nebo nastaví pojmenovanou úroveň zabezpečení, která je namapována na soubor zásad.

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

Hodnota vlastnosti

Ten Name se mapuje na soubor zásad.

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít Name vlastnost. Tento příklad kódu je součástí většího příkladu uvedeného pro třídu 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)

Platí pro

Viz také