Udostępnij za pośrednictwem


FormsAuthenticationCredentials.Users Właściwość

Definicja

Pobiera nazwy użytkowników i poświadczenia hasła.

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

Wartość właściwości

Element FormsAuthenticationUserCollection zawierający nazwy użytkowników i poświadczenia hasła.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak używać Users właściwości . Zapoznaj się z przykładem kodu w temacie FormsAuthenticationCredentials klasy, aby dowiedzieć się, jak uzyskać sekcję.


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

Dotyczy

Zobacz też