System.Security.Principal.WindowsPrincipal.Identity Property

Gets the identity of the current principal.

Syntax

public virtual IIdentity Identity { get; }

Value

The current identity of the principal.

Remarks

The returned identity will always be a System.Security.Principal.WindowsIdentity instance.

Requirements

Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0