TrustLevel.Name Właściwość

Definicja

Pobiera lub ustawia nazwany poziom zabezpieczeń mapowany na plik zasad.

C#
[System.Configuration.ConfigurationProperty("name", DefaultValue="Full", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }

Wartość właściwości

String

Element Name , który jest mapowany na plik zasad.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak używać Name właściwości . Ten przykład kodu jest częścią większego przykładu udostępnionego TrustLevel dla klasy .

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

Dotyczy

Produkt Wersje
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

Zobacz też