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

Usage

Visual Basic
Dim upn As String
Dim authenticationType As String
Dim useWindowsTokenService As Boolean
Dim returnValue As WindowsClaimsIdentity

returnValue = WindowsClaimsIdentity.CreateFromUpn(upn, authenticationType, useWindowsTokenService)

Syntax

Visual Basic
Public Shared Function CreateFromUpn ( _
		upn As String, _
		authenticationType As String, _
		useWindowsTokenService As Boolean _
) As WindowsClaimsIdentity
C#
public static WindowsClaimsIdentity CreateFromUpn (
		string upn,
		string authenticationType,
		bool useWindowsTokenService
)
C++
public:
static WindowsClaimsIdentity^ CreateFromUpn (
		String^ upn, 
		String^ authenticationType, 
		bool useWindowsTokenService
)
J#
public static WindowsClaimsIdentity CreateFromUpn (
		String upn, 
		String authenticationType, 
		boolean useWindowsTokenService
)
JScript
public static function CreateFromUpn (
		upn : String, 
		authenticationType : String, 
		useWindowsTokenService : boolean
) : WindowsClaimsIdentity

Parameters

upn

The Kerberos User Principal Name (UPN) of the user which this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity represents.

authenticationType

The type of authentication used.

useWindowsTokenService

A boolean flag indicating whether the Windows Token Service is to be used for this operation.

Exceptions

Exception type Condition

Remarks

If configured, the Windows Token Service will be utilized to ensure that this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity allows impersonation.


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