共用方式為


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()

適用於

另請參閱