GenericPrincipal.Identity Property


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

 virtual property System::Security::Principal::IIdentity ^ Identity { System::Security::Principal::IIdentity ^ get(); };
public virtual System.Security.Principal.IIdentity Identity { get; }
member this.Identity : System.Security.Principal.IIdentity
Public Overridable ReadOnly Property Identity As IIdentity

Property Value

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 =
GenericIdentity principalIdentity = 
Dim principalIdentity As GenericIdentity = _
    CType(genericPrincipal.Identity, GenericIdentity)

Applies to