MembershipSection Class

Validates user credentials and manages user settings.

Syntax

class MembershipSection : ConfigurationSectionWithCollection  

Methods

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.)

Properties

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. Note: 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.

Subclasses

This class contains no subclasses.

Inheritance Hierarchy

ConfigurationSection

ConfigurationSectionWithCollection

MembershipSection

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

System.Web.Security.Membership ConfigurationSectionWithCollection Class
ProvidersSettings Class
Mapping Algorithm Names to Cryptography Classes