This documentation is archived and is not being maintained.

ClientFormsAuthenticationCredentials::UserName Property

Gets or sets the user name.

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

public:
property String^ UserName {
	String^ get ();
	void set (String^ value);
}

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: