Edit

Bagikan melalui


Claim.CreateX500DistinguishedNameClaim(X500DistinguishedName) Method

Definition

Creates a Claim object that represents the specified X.500 distinguished name.

public:
 static System::IdentityModel::Claims::Claim ^ CreateX500DistinguishedNameClaim(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ x500DistinguishedName);
public static System.IdentityModel.Claims.Claim CreateX500DistinguishedNameClaim (System.Security.Cryptography.X509Certificates.X500DistinguishedName x500DistinguishedName);
static member CreateX500DistinguishedNameClaim : System.Security.Cryptography.X509Certificates.X500DistinguishedName -> System.IdentityModel.Claims.Claim
Public Shared Function CreateX500DistinguishedNameClaim (x500DistinguishedName As X500DistinguishedName) As Claim

Parameters

x500DistinguishedName
X500DistinguishedName

A X500DistinguishedName that specifies the X.500 distinguished 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.

Returns

The Claim object this method creates.

Exceptions

The x500DistinguishedName parameter is null.

Remarks

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

ClaimType X500DistinguishedName

Resource The value of the x500DistinguishedName parameter.

Right PossessProperty.

Applies to