Export (0) Print
Expand All
Expand Minimize

IdentitySection Class [IIS 7 and higher]

IIS 7.0

Specifies whether an ASP.NET application should run as the application pool identity (the default), the IIS-authenticated user identity, or a custom configured identity.

class IdentitySection : ConfigurationSection

The following table lists the methods exposed by the IdentitySection class.

Name

Description

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

The following table lists the properties exposed by the IdentitySection class.

Name

Description

Impersonate

A required read/write boolean value. true if client impersonation is used on each request; otherwise, false. The default is false.

Location

(Inherited from ConfigurationSection.) A key property.

Password

An optional read/write string value that specifies the password for a Web application if the Impersonate property is set to true. For more information, see the Remarks section.

Path

(Inherited from ConfigurationSection.) A key property.

SectionInformation

(Inherited from ConfigurationSection.)

UserName

An optional read/write string value that specifies the user name for a Web application if the Impersonate property is set to true. For more information, see the Remarks section.

This class contains no subclasses.

The Password and UserName properties are stored in clear text in the configuration file. Although IIS does not transmit .config files in response to a user agent request, users who have proper credentials on the domain that contains the server can read .config files. For information about storing the UserName and Password values in encrypted form in the registry, see identity Element (ASP.NET Settings Schema).

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Community Additions

ADD
Show:
© 2014 Microsoft