FormsAuthenticationCredentials.Users Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft die Namen und Kennwortinformationen der Benutzer ab.
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
Eigenschaftswert
Eine FormsAuthenticationUserCollection, die die Namen und Kennwortinformationen der Benutzer enthält.
- Attribute
Beispiele
Im folgenden Codebeispiel wird die Verwendung der Users-Eigenschaft veranschaulicht. Weitere Informationen zum Abrufen des FormsAuthenticationCredentials Abschnitts finden Sie im Codebeispiel im Kursthema.
// Create a new FormsAuthenticationUserCollection object.
FormsAuthenticationUserCollection newformsAuthenticationUser =
new FormsAuthenticationUserCollection();
' Create a new FormsAuthenticationUserCollection object.
Dim newformsAuthenticationUser _
As New FormsAuthenticationUserCollection()