Claim.CreateUriClaim(Uri) Method

Definition

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

public:
 static System::IdentityModel::Claims::Claim ^ CreateUriClaim(Uri ^ uri);
public static System.IdentityModel.Claims.Claim CreateUriClaim (Uri uri);
static member CreateUriClaim : Uri -> System.IdentityModel.Claims.Claim
Public Shared Function CreateUriClaim (uri As Uri) As Claim

Parameters

uri
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.

Returns

The Claim object this method creates.

Exceptions

The uri parameter is null.

Remarks

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.

Applies to