Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RolePrincipal::Identity Property

 

Gets the security identity for the current HTTP request.

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

public:
property IIdentity^ Identity {
	virtual IIdentity^ get() override;
}

Property Value

Type: System.Security.Principal::IIdentity^

The security identity for the current HTTP request.

The Identity of a RolePrincipal object is set when the RolePrincipal constructor is called.

The following example displays role-caching information for the current user if role management is enabled. For information on enabling role management, see the Roles class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft