Creates a WindowsClaimsIdentity from the current identity.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim returnValue As WindowsClaimsIdentity

returnValue = WindowsClaimsIdentity.GetCurrent

Syntax

Visual Basic
Public Shared Function GetCurrent As WindowsClaimsIdentity
C#
public static WindowsClaimsIdentity GetCurrent ()
C++
public:
static WindowsClaimsIdentity^ GetCurrent ()
J#
public static WindowsClaimsIdentity GetCurrent ()
JScript
public static function GetCurrent () : WindowsClaimsIdentity

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also