MembershipSection Class [IIS 7 and higher]

IIS 7.0

Validates user credentials and manages user settings.

class MembershipSection : ConfigurationSectionWithCollection

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

Name

Description

Add

(Inherited from ConfigurationSectionWithCollection.)

Clear

(Inherited from ConfigurationSectionWithCollection.)

Get

(Inherited from ConfigurationSectionWithCollection.)

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

Remove

(Inherited from ConfigurationSectionWithCollection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

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

Name

Description

DefaultProvider

A read/write string value that specifies the default membership provider for an application. The default is "AspNetSqlMembershipProvider".

HashAlgorithmType

A read/write string value that identifies a custom algorithm that is used to hash passwords. If no value is specified, the hash algorithm specified in the Validation property of the MachineKeySection class is used.

NoteNote:
The .NET Framework enables you to configure custom cryptography classes by using the <cryptographySettings> configuration section. The HashAlgorithmType property must match the name attribute of the <nameEntry> element in a <cryptoNameMapping> element. For more information, see Mapping Algorithm Names to Cryptography Classes.

Location

(Inherited from ConfigurationSection.) A key property.

Path

(Inherited from ConfigurationSection.) A key property.

Providers

A ProvidersSettings value that specifies membership providers for an ASP.NET application (Web.config level) or for all ASP.NET applications (Machine.config level).

SectionInformation

(Inherited from ConfigurationSection.)

UserIsOnlineTimeWindow

A read/write datetime value that specifies the time interval after the last-activity date/time stamp for a user during which the user is considered online. The default is 15 minutes.

This class contains no subclasses.

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: