MembershipSection Class [IIS 7 and higher]
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 |
---|---|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(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. ![]()
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
ConfigurationSectionWithCollection
MembershipSection
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |
See Also
Reference
ConfigurationSectionWithCollection Class [IIS 7 and higher]
ProvidersSettings Class [IIS 7 and higher]
Membership