Udostępnij za pośrednictwem


TrustSection.Level Właściwość

Definicja

Pobiera lub ustawia nazwę poziomu zabezpieczeń, w ramach którego aplikacja zostanie uruchomiona.

public:
 property System::String ^ Level { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("level", DefaultValue="Full", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Level { get; set; }
[<System.Configuration.ConfigurationProperty("level", DefaultValue="Full", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Level : string with get, set
Public Property Level As String

Wartość właściwości

Nazwa poziomu zaufania. Wartość domyślna to "Full".

Atrybuty

Przykłady

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

// Display Level property
Console.WriteLine("Level: {0}", configSection.Level);
' Display Level property.
Console.WriteLine("Level: {0}", configSection.Level)

Uwagi

Właściwość Level określa poziom zabezpieczeń, w którym będzie uruchamiana aplikacja. Wartość domyślna to "Full".

Istnieje pięć dostępnych poziomów zaufania:

  • Pełny

  • High

  • Średni

  • Low

  • Minimalny

Nazwane poziomy odpowiadają poziomom zabezpieczeń zdefiniowanym w elemecie <trustLevel> dla elementu <securityPolicy>.

Dotyczy

Zobacz też