FormsAuthenticationCredentials.Users 属性

定义

获取用户的名称和密码凭据。

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

包含用户的名称和密码凭据的 FormsAuthenticationUserCollection

属性

示例

下面的代码示例说明如何使用 Users 属性。 请参阅类主题中的 FormsAuthenticationCredentials 代码示例,了解如何获取该部分。


// Create a new FormsAuthenticationUserCollection object.
FormsAuthenticationUserCollection newformsAuthenticationUser = 
    new FormsAuthenticationUserCollection();
' Create a new FormsAuthenticationUserCollection object.
  Dim newformsAuthenticationUser _
  As New FormsAuthenticationUserCollection()

适用于

另请参阅