MembershipSection 类
验证用户凭据和管理用户设置。
语法
class MembershipSection : ConfigurationSectionWithCollection
方法
下表列出了 MembershipSection
类公开的方法。
名称 | 说明 |
---|---|
添加 | (继承自 ConfigurationSectionWithCollection。) |
清除 | (从 ConfigurationSectionWithCollection 继承。) |
Get | (从 ConfigurationSectionWithCollection 继承。) |
GetAllowDefinition | (继承自 ConfigurationSection。) |
GetAllowLocation | (从 ConfigurationSection 继承。) |
删除 | (从 ConfigurationSectionWithCollection 继承。) |
RevertToParent | (从 ConfigurationSection 继承。) |
SetAllowDefinition | (从 ConfigurationSection 继承。) |
SetAllowLocation | (从 ConfigurationSection 继承。) |
属性
下表列出了 MembershipSection
类公开的属性。
名称 | 描述 |
---|---|
DefaultProvider |
一个读/写 string 值,该值指定应用程序的默认成员身份提供程序。 默认值为“AspNetSqlMembershipProvider”。 |
HashAlgorithmType |
一个读/写 string 值,该值标识用于哈希密码的自定义算法。 如果未指定任何值,则使用 MachineKeySection 类的 Validation 属性中指定的哈希算法。 注意:.NET Framework 使您能够使用 <cryptographySettings> 配置部分配置自定义加密类。 该 HashAlgorithmType 属性必须与 <cryptoNameMapping> 元素中 <nameEntry> 元素的名称属性匹配。 有关详细信息,请参阅将算法名称映射到加密类。 |
Location |
(继承自 ConfigurationSection 。)一个键属性。 |
Path |
(继承自 ConfigurationSection 。)一个键属性。 |
Providers |
ProvidersSettings 值,该值指定 ASP.NET 应用程序(Web.config 级别)或所有 ASP.NET 应用程序(Machine.config 级别)的成员身份提供程序。 |
SectionInformation |
(从 ConfigurationSection 继承。) |
UserIsOnlineTimeWindow |
一个读/写 datetime 值,该值指定用户在用户处于联机状态的最后一个活动日期/时间戳之后的时间间隔。 默认值为 15 分钟。 |
子类
此类不包含子类。
继承层次结构
ConfigurationSectionWithCollection
MembershipSection
要求
类型 | 描述 |
---|---|
客户端 | - IIS 7.0(在 Windows Vista 上) - IIS 7.5(在 Windows 7 上) - IIS 8.0(在 Windows 8 上) - IIS 10.0(在 Windows 10 上) |
服务器 | - IIS 7.0(在 Windows Server 2008 上) - IIS 7.5(在 Windows Server 2008 R2 上) - IIS 8.0(在 Windows Server 2012 上) - IIS 8.5(在 Windows Server 2012 R2 上) - IIS 10.0(在 Windows Server 2016 上) |
产品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
MOF 文件 | WebAdministration.mof |
另请参阅
System.Web.Security.MembershipConfigurationSectionWithCollection 类
ProvidersSettings 类
将算法名称映射到加密类