Edit

Share via


FormsAuthenticationUserCollection.Get Method

Definition

Gets the specified FormsAuthenticationUser collection element.

Overloads

Get(String)

Gets the FormsAuthenticationUser collection element with the specified name.

Get(Int32)

Gets the FormsAuthenticationUser collection element at the specified index.

Get(String)

Gets the FormsAuthenticationUser collection element with the specified name.

public System.Web.Configuration.FormsAuthenticationUser Get(string name);

Parameters

name
String

The user's name.

Returns

A FormsAuthenticationUser object that contains the user name and password.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Get(Int32)

Gets the FormsAuthenticationUser collection element at the specified index.

public System.Web.Configuration.FormsAuthenticationUser Get(int index);

Parameters

index
Int32

The collection user's index.

Returns

A FormsAuthenticationUser that contains the user name and password.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1