Redigeeri

Jagamisviis:


ClientRolePrincipal(IIdentity) Constructor

Definition

Initializes a new instance of the ClientRolePrincipal class.

public:
 ClientRolePrincipal(System::Security::Principal::IIdentity ^ identity);
public ClientRolePrincipal (System.Security.Principal.IIdentity identity);
new System.Web.ClientServices.ClientRolePrincipal : System.Security.Principal.IIdentity -> System.Web.ClientServices.ClientRolePrincipal
Public Sub New (identity As IIdentity)

Parameters

identity
IIdentity

Represents the current user.

Remarks

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.

Applies to

See also