ClientRolePrincipal Constructor (IIdentity^)
.NET Framework (current version)
Initializes a new instance of the ClientRolePrincipal class.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- identity
-
Type:
System.Security.Principal::IIdentity^
Represents the current user.
The Identity property is initialized with the value of the identity parameter.
When you validate a user in client application services, the ClientFormsAuthenticationMembershipProvider or the ClientWindowsAuthenticationMembershipProvider sets the static Thread::CurrentPrincipal property to an instance of this class. The ClientFormsAuthenticationMembershipProvider initializes the Identity property to a new instance of the ClientFormsIdentity class. The ClientWindowsAuthenticationMembershipProvider initializes the Identity property to the WindowsIdentity object returned by the static WindowsIdentity::GetCurrent() method.
.NET Framework
Available since 3.5
Available since 3.5
Show: