TrustSection.Level Propriedade

Definição

Obtém ou define o nome do nível de segurança sob o qual a aplicação irá correr.

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

Valor de Propriedade

O nome do nível de confiança. A predefinição é "Full".

Atributos

Exemplos

O exemplo de código seguinte demonstra como usar a Level propriedade. Este exemplo de código faz parte de um exemplo maior fornecido para a TrustSection classe.

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

Observações

A Level propriedade especifica o nível de segurança sob o qual a aplicação será executada. A predefinição é "Full".

Existem cinco níveis de confiança disponíveis:

  • Completo

  • Alto

  • Medium

  • Baixo

  • Mínimo

Os níveis nomeados correspondem aos níveis de segurança definidos no <trustLevel> elemento para <securityPolicy>.

Aplica-se a

Ver também