asp.net.ph

IdentitySection Class

System.Web.Configuration Namespace


.NET Framework version 2.0

Configures the identity of a Web application. This class cannot be inherited.

IdentitySection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public IdentitySection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Impersonate Boolean [ Get , Set ]
public Password String [ Get , Set ]
public UserName String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected GetRuntimeObject ( ) Object
protected Reset ( ConfigurationElement parentElement ) Void
protected Unmerge ( ConfigurationElement sourceElement , ConfigurationElement parentElement , ConfigurationSaveMode saveMode ) Void

Remarks

The IdentitySection provides a way to programmatically access and modify the identity section of a configuration file.

NOTE: The IdentitySection can read and write information from and to the related section of the configuration file according to the section property AllowDefinition whose value is Everywhere.

Example

The following code example shows how to obtain the IdentitySection object from the configuration file of an existing Web application.

// Get the Web application configuration.
System.Configuration.Configuration configuration =
   System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration ( "/aspnetTest" );

// Get the section.
System.Web.Configuration.IdentitySection identitySection =
  ( System.Web.Configuration.IdentitySection)configuration.GetSection ( "system.web/identity" );
  C# VB

See Also

ASP.NET Configuration   <identity> Section Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph