Claim.CreateHashClaim Method (Byte[])

 

Creates a Claim object that represents the specified hash value.

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

public static Claim CreateHashClaim(
	byte[] hash
)

Parameters

hash
Type: System.Byte[]

An array of byte values that specifies a hash value. This parameter must not be null. If this parameter is null, this method throws a ArgumentNullException exception.

Return Value

Type: System.IdentityModel.Claims.Claim

The Claim object this method creates.

Exception Condition
ArgumentNullException

The hash parameter is null.

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

Property

Value

ClaimType

Hash

Resource

The value of the hash parameter.

Right

PossessProperty.

.NET Framework
Available since 3.0
Return to top
Show: