Claim.CreateThumbprintClaim(Byte[]) 方法

定義

建立 Claim 物件,這個物件表示指定的指紋。Creates a Claim object that represents the specified thumbprint.

public:
 static System::IdentityModel::Claims::Claim ^ CreateThumbprintClaim(cli::array <System::Byte> ^ thumbprint);
public static System.IdentityModel.Claims.Claim CreateThumbprintClaim (byte[] thumbprint);
static member CreateThumbprintClaim : byte[] -> System.IdentityModel.Claims.Claim
Public Shared Function CreateThumbprintClaim (thumbprint As Byte()) As Claim

參數

thumbprint
Byte[]

位元組值陣列,指定與宣告關聯之實體的指紋。An array of byte values that specifies the thumbprint of the entity associated with the claim. 此參數不得為 nullThis parameter must not be null. 如果此參數為 null,這個方法會擲回 ArgumentNullException 例外狀況。If this parameter is null, this method throws an ArgumentNullException exception.

傳回

Claim

這個方法建立的 Claim 物件。The Claim object this method creates.

例外狀況

thumbprint 參數為 nullThe thumbprint parameter is null.

備註

這個方法所建立的 Claim 物件具有下表所示的屬性值。The Claim object this method creates has the property values shown in the following table.

屬性Property Value
ClaimType Thumbprint
Resource thumbprint 參數的值。The value of the thumbprint parameter.
Right PossessProperty.PossessProperty.

適用於