Claim.CreateNameClaim Method (String)

 

Creates a Claim object that represents the specified name.

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

public static Claim CreateNameClaim(
	string name
)

Parameters

name
Type: System.String

The name of the entity associated with the 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 name parameter is null.

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

Property

Value

ClaimType

Name

Resource

The value of the name parameter.

Right

PossessProperty.

.NET Framework
Available since 3.0
Return to top
Show: