ClientWindowsAuthenticationMembershipProvider::ValidateUser Method (String^, String^)
Automatically authenticates the current user by using the identity supplied by the operating system.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- username
-
Type:
System::String^
Must be Empty or null.
- password
-
Type:
System::String^
Must be Empty or null.
| Exception | Condition |
|---|---|
| ArgumentException |
When you configure your application to use the ClientWindowsAuthenticationMembershipProvider class, the static Membership::ValidateUser method will use this method for its implementation. The ClientWindowsAuthenticationMembershipProvider::ValidateUser method automatically authenticates the current user and sets the static Thread::CurrentPrincipal property to a ClientRolePrincipal object that contains the current WindowsIdentity. If a ClientRoleProvider is configured for your application, you can use the ClientRolePrincipal object to retrieve user role information from the roles service.
Available since 3.5