Claim.CreateUpnClaim Method (String)

 

Creates a Claim object that represents the specified Universal Principal Name (UPN).

Namespace:   System.IdentityModel.Claims
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public static Claim CreateUpnClaim(
	string upn
)

Parameters

upn
Type: System.String

The UPN of the entity associated with this claim. This parameter must not be null. If this parameter is null, this method throws an ArgumentNullException exception.

Return Value

Type: System.IdentityModel.Claims.Claim

The Claim object this method creates.

Exception Condition
ArgumentNullException

The upn parameter is null.

The Claim object this method creates has the property values shown in the following table.

Property

Value

ClaimType

Upn

Resource

The value of the upn parameter.

Right

PossessProperty.

.NET Framework
Available since 3.0
Return to top
Show: