Claim.CreateUriClaim Method (Uri)

 

Creates a Claim object that represents the specified Uniform Resource Locator (URL).

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

public static Claim CreateUriClaim(
	Uri uri
)

Parameters

uri
Type: System.Uri

A Uri that represents the URL 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 uri parameter is null.

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

Property

Value

ClaimType

Uri

Resource

The value of the uri parameter.

Right

PossessProperty.

.NET Framework
Available since 3.0
Return to top
Show: