Comparteix a través de


SystemWebSectionGroup.Identity Propiedad

Definición

Obtiene la sección identity.

public:
 property System::Web::Configuration::IdentitySection ^ Identity { System::Web::Configuration::IdentitySection ^ get(); };
[System.Configuration.ConfigurationProperty("identity")]
public System.Web.Configuration.IdentitySection Identity { get; }
[<System.Configuration.ConfigurationProperty("identity")>]
member this.Identity : System.Web.Configuration.IdentitySection
Public ReadOnly Property Identity As IdentitySection

Valor de propiedad

IdentitySection

Objeto IdentitySection.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo obtener el IdentitySection objeto del archivo de configuración de una aplicación web existente.

// Get the identity section.
IdentitySection identity =
    systemWeb.Identity;
// Read section information.
info =
    identity.SectionInformation;
name = info.SectionName;
type = info.Type;
declared = info.IsDeclared.ToString();
msg = String.Format(
    "Name:     {0}\nDeclared: {1}\nType:     {2}\n",
    name, declared, type);
' Get the identity section.
Dim identity As IdentitySection = _
systemWeb.Identity
' Read section information.
info = identity.SectionInformation
name = info.SectionName
type = info.Type
declared = info.IsDeclared.ToString()
msg = String.Format("Name:     {0}" + _
ControlChars.Lf + "Declared: {1}" + _
ControlChars.Lf + "Type:     {2}" + _
ControlChars.Lf, name, declared, type)

Comentarios

El objeto IdentitySection hace referencia a la sección identity del archivo de configuración.

Se aplica a

Consulte también