Rediger

Del via


FormsAuthenticationUserCollection.Add(FormsAuthenticationUser) Method

Definition

Adds a FormsAuthenticationUser object to the collection.

public:
 void Add(System::Web::Configuration::FormsAuthenticationUser ^ user);
public void Add (System.Web.Configuration.FormsAuthenticationUser user);
member this.Add : System.Web.Configuration.FormsAuthenticationUser -> unit
Public Sub Add (user As FormsAuthenticationUser)

Parameters

user
FormsAuthenticationUser

The FormsAuthenticationUser object to add to the collection.

Exceptions

The FormsAuthenticationUser object already exists in the collection, or the collection is read-only.

Remarks

The collection must not contain a FormsAuthenticationUser object with the same name.

Applies to