FormsAuthenticationCredentials.Users Property

Definition

Gets the users' names and password credentials.

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

Property Value

A FormsAuthenticationUserCollection that contains the users' names and password credentials.

Attributes

Examples

The following code example shows how to use the Users property. Refer to the code example in the FormsAuthenticationCredentials class topic to learn how to get the section.


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

Applies to

See also