FormsAuthenticationCredentials.Users Właściwość
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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()