HttpRuntimeSection.Enable Propriedade

Definição

Obtém ou define um valor que indica se o domínio do aplicativo está habilitado.Gets or sets a value that indicates whether the application domain is enabled.

public:
 property bool Enable { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enable", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool Enable { get; set; }
[<System.Configuration.ConfigurationProperty("enable", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.Enable : bool with get, set
Public Property Enable As Boolean

Valor da propriedade

Boolean

true Se o domínio do aplicativo estiver habilitado; caso contrário, false .true if the application domain is enabled; otherwise, false. O valor padrão é true.The default value is true.

Atributos

Exemplos

O exemplo a seguir mostra como usar a Enable propriedade.The following example shows how to use the Enable property.

// Get the Enable property value.
Response.Write("Enable: " +
  configSection.Enable + "<br>");

// Set the Enable property value to true.
configSection.Enable = true;
' Get the Enable property value.
Response.Write("Enable: " & _
  configSection.Enable & "<br>")

' Set the Enable property value to true.
configSection.Enable = True

Comentários

Essa configuração afeta o domínio do aplicativo ou os domínios no nível do nó atual e abaixo.This setting affects the application domain or domains at the current node level and below.

Aplica-se a