TrustSection.Level Propriedade

Definição

Obtém ou define o nome do nível de segurança em que o aplicativo será executado.Gets or sets the name of the security level under which the application will run.

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

Valor da propriedade

String

O nome do nível de confiança.The name of the trust level. O padrão é "Full".The default is "Full".

Atributos

Exemplos

O exemplo de código a seguir demonstra como usar a Level propriedade.The following code example demonstrates how to use the Level property. Este exemplo de código faz parte de um exemplo maior fornecido para a TrustSection classe.This code example is part of a larger example provided for the TrustSection class.

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

Comentários

A Level propriedade especifica o nível de segurança sob o qual o aplicativo será executado.The Level property specifies the security level under which the application will be run. O padrão é "Full".The default is "Full".

Há cinco níveis de confiança disponíveis:There are five available trust levels:

  • CompletoFull

  • AltoHigh

  • MédioMedium

  • BaixoLow

  • MinimalMinimal

Os níveis nomeados correspondem aos níveis de segurança definidos no <trustLevel> elemento para <securityPolicy> .The named levels correspond to the security levels that are defined in the <trustLevel> element for <securityPolicy>.

Aplica-se a

Confira também