X509SubjectKeyIdentifierClause.CanCreateFrom(X509Certificate2) 方法

定义

获取一个值,该值指示是否可以为指定的 X.509 证书创建密钥标识符子句。

public:
 static bool CanCreateFrom(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static bool CanCreateFrom (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member CanCreateFrom : System.Security.Cryptography.X509Certificates.X509Certificate2 -> bool
Public Shared Function CanCreateFrom (certificate As X509Certificate2) As Boolean

参数

certificate
X509Certificate2

一个包含 X.509 证书的 X509Certificate2

返回

如果可以为 true 创建密钥标识符子句,则为 certificate;否则为 false

例外

certificatenull

注解

certificate 参数包含 X509SubjectKeyIdentifierExtension 扩展时,可以创建密钥标识符子句。

适用于