FormsAuthenticationUser 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为使用基于表单的身份验证的 Web 应用程序配置用户的凭据。
public ref class FormsAuthenticationUser sealed : System::Configuration::ConfigurationElement
public sealed class FormsAuthenticationUser : System.Configuration.ConfigurationElement
type FormsAuthenticationUser = class
inherit ConfigurationElement
Public NotInheritable Class FormsAuthenticationUser
Inherits ConfigurationElement
- 继承
注解
该 FormsAuthenticationUser 类提供了一种以编程方式访问和修改 配置文件身份验证部分表单的凭据元素 的方法。
此类型是包含 FormsAuthenticationCredentials类型、类型和 FormsAuthenticationUserCollection类型的组的 FormsAuthenticationConfiguration 一部分。 集合类型以外的类型直接影响基础配置标记。
Warning
将用户凭据存储在 credentials 部分中 不安全。 请改用 Azure 密钥保管库。
注释
只能在 FormsAuthenticationUser 计算机、站点或应用程序级别将信息写入配置文件的相关部分。 在层次结构中不同级别的配置文件中写入的任何尝试都将导致分析程序生成的错误消息。 但是,可以使用此类在层次结构中的任何级别读取配置信息。 为了安全和可伸缩性,建议使用 Azure 密钥保管库 来存储用户凭据。
构造函数
| 名称 | 说明 |
|---|---|
| FormsAuthenticationUser(String, String) |
使用传递的参数初始化类的新实例 FormsAuthenticationUser 。 |