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.

GenericPrincipal::Identity Property

 

Gets the GenericIdentity of the user represented by the current GenericPrincipal.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

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

Property Value

Type: System.Security.Principal::IIdentity^

The GenericIdentity of the user represented by the GenericPrincipal.

The following code shows the use of the Identity property. This code example is part of a larger example provided for the GenericPrincipal class.

GenericIdentity^ principalIdentity =
   dynamic_cast<GenericIdentity^>(genericPrincipal->Identity);

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft