共用方式為


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

傳回

如果能建立 certificate 的金鑰識別碼子句,則為 true,否則為 false

例外狀況

certificatenull

備註

certificate 參數包含 X509SubjectKeyIdentifierExtension 延伸時,就能夠建立金鑰識別碼子句。

適用於