DSACertificateExtensions.GetDSAPublicKey(X509Certificate2) メソッド

定義

DSA から X509Certificate2 公開キーを取得します。Gets the DSA public key from the X509Certificate2.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::Cryptography::DSA ^ GetDSAPublicKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static System.Security.Cryptography.DSA GetDSAPublicKey (this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member GetDSAPublicKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.DSA
<Extension()>
Public Function GetDSAPublicKey (certificate As X509Certificate2) As DSA

パラメーター

certificate
X509Certificate2

証明書。The certificate.

戻り値

DSA

公開キー、または証明書に DSA 公開キーがない場合は null です。The public key, or null if the certificate does not have a DSA public key.

例外

certificatenull です。certificate is null.

Windows にエラーが表示されます。Windows reports an error. 詳細については、Message プロパティに関するトピックを参照してください。See the Message property for more information.

適用対象