FormsAuthenticationCredentials.Users 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取用户的名称和密码凭据。
public:
property System::Web::Configuration::FormsAuthenticationUserCollection ^ Users { System::Web::Configuration::FormsAuthenticationUserCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true, Options=System.Configuration.ConfigurationPropertyOptions.IsDefaultCollection)]
public System.Web.Configuration.FormsAuthenticationUserCollection Users { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true, Options=System.Configuration.ConfigurationPropertyOptions.IsDefaultCollection)>]
member this.Users : System.Web.Configuration.FormsAuthenticationUserCollection
Public ReadOnly Property Users As FormsAuthenticationUserCollection
属性值
包含用户的名称和密码凭据的 FormsAuthenticationUserCollection。
- 属性
示例
下面的代码示例说明如何使用 Users 属性。 请参阅类主题中的 FormsAuthenticationCredentials 代码示例,了解如何获取该部分。
// Create a new FormsAuthenticationUserCollection object.
FormsAuthenticationUserCollection newformsAuthenticationUser =
new FormsAuthenticationUserCollection();
' Create a new FormsAuthenticationUserCollection object.
Dim newformsAuthenticationUser _
As New FormsAuthenticationUserCollection()