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: