X509SubjectKeyIdentifierClause.TryCreateFrom 方法

定义

使用指定的 X.509 证书创建密钥标识符子句。

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

参数

certificate
X509Certificate2

要为其创建密钥标识符子句的 X509Certificate2

keyIdentifierClause
X509SubjectKeyIdentifierClause

当此方法返回时,它包含一个表示密钥标识符子句的 X509SubjectKeyIdentifierClause。 此参数未经初始化即被传递。

返回

如果可以为指定的 X.509 证书创建密钥标识符子句,则为 true;否则为 false

例外

certificatenull

注解

当 X.509 证书包含主题密钥标识符时,可以为该证书创建 X509SubjectKeyIdentifierClause 密钥标识符子句。

适用于