Initializes an instance of T:Microsoft.IdentityModel.Claims.WindowsClaimsPrincipal.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim identity As WindowsIdentity
Dim returnValue As IClaimsPrincipal

returnValue = WindowsClaimsPrincipal.CreateFromWindowsIdentity(identity)

Syntax

Visual Basic
Public Shared Function CreateFromWindowsIdentity ( _
		identity As WindowsIdentity _
) As IClaimsPrincipal
C#
public static IClaimsPrincipal CreateFromWindowsIdentity (
		WindowsIdentity identity
)
C++
public:
static IClaimsPrincipal^ CreateFromWindowsIdentity (
		WindowsIdentity^ identity
)
J#
public static IClaimsPrincipal CreateFromWindowsIdentity (
		WindowsIdentity identity
)
JScript
public static function CreateFromWindowsIdentity (
		identity : WindowsIdentity
) : IClaimsPrincipal

Parameters

identity

The WindowsIdentity to draw the user token from.

Exceptions

Exception type Condition

Remarks

Checks for anonymous identities.


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