Edit

Share via


X509SubjectKeyIdentifierClause.TryCreateFrom Method

Definition

Creates a key identifier clause using the specified X.509 certificate.

public:
 static bool TryCreateFrom(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::X509SubjectKeyIdentifierClause ^ % keyIdentifierClause);
public static bool TryCreateFrom (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, out System.IdentityModel.Tokens.X509SubjectKeyIdentifierClause keyIdentifierClause);
static member TryCreateFrom : System.Security.Cryptography.X509Certificates.X509Certificate2 * X509SubjectKeyIdentifierClause -> bool
Public Shared Function TryCreateFrom (certificate As X509Certificate2, ByRef keyIdentifierClause As X509SubjectKeyIdentifierClause) As Boolean

Parameters

certificate
X509Certificate2

An X509Certificate2 to create the key identifier clause for.

keyIdentifierClause
X509SubjectKeyIdentifierClause

When this method returns, contains a X509SubjectKeyIdentifierClause that represents the key identifier clause. This parameter is passed uninitialized.

Returns

true when a key identifier clause can be created for the specified X.509 certificate; otherwise, false.

Exceptions

certificate is null.

Remarks

A X509SubjectKeyIdentifierClause key identifier clause can be created for the X.509 certificate when it contains a subject key identifier.

Applies to