ClientFormsAuthenticationCredentials.UserName Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the user name.

Namespace:   System.Web.ClientServices.Providers
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public string UserName { get; set; }

Property Value

Type: System.String

The user name.

The ClientFormsAuthenticationMembershipProvider class uses this property to retrieve the user name during authentication. You will not typically use this property in your application code. Instead, you will use the class constructor to set the user name.

.NET Framework
Available since 3.5
Return to top