This documentation is archived and is not being maintained.
ClientFormsAuthenticationCredentials Constructor
Visual Studio 2010
Initializes a new instance of the ClientFormsAuthenticationCredentials class.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: ClientFormsAuthenticationCredentials( String^ username, String^ password, bool rememberMe )
Parameters
- username
- Type: System::String
The user name.
- password
- Type: System::String
The user password.
- rememberMe
- Type: System::Boolean
A value indicating whether the user credentials should be saved and reused for subsequent login attempts.
The following example code demonstrates how to implement the IClientFormsAuthenticationCredentialsProvider::GetCredentials method, which returns an instance of this class. In this example, the GetCredentials method is part of a login dialog box class. The method displays the dialog box, and then returns a ClientFormsAuthenticationCredentials instance initialized with the user-specified values.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: