共用方式為


X509AsymmetricSecurityKey(X509Certificate2) 建構函式

定義

使用指定的 X.509 憑證,初始化 X509AsymmetricSecurityKey 類別的新執行個體。

public:
 X509AsymmetricSecurityKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public X509AsymmetricSecurityKey (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.Tokens.X509AsymmetricSecurityKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Tokens.X509AsymmetricSecurityKey
Public Sub New (certificate As X509Certificate2)

參數

certificate
X509Certificate2

表示 X.509 憑證的 X509Certificate2

例外狀況

certificatenull

適用於