Module.GetSignerCertificate 方法

定义

返回与证书(包括在此模块所属的程序集的验证码签名中)对应的 X509Certificate 对象。Returns an X509Certificate object corresponding to the certificate included in the Authenticode signature of the assembly which this module belongs to. 如果此程序集没有进行验证码签名,则返回 nullIf the assembly has not been Authenticode signed, null is returned.

public:
 virtual System::Security::Cryptography::X509Certificates::X509Certificate ^ GetSignerCertificate();
public virtual System.Security.Cryptography.X509Certificates.X509Certificate GetSignerCertificate ();
abstract member GetSignerCertificate : unit -> System.Security.Cryptography.X509Certificates.X509Certificate
override this.GetSignerCertificate : unit -> System.Security.Cryptography.X509Certificates.X509Certificate
Public Overridable Function GetSignerCertificate () As X509Certificate

返回

X509Certificate 对象;如果此模块所属的程序集没有进行验证码签名,则为 nullAn X509Certificate object, or null if the assembly to which this module belongs has not been Authenticode signed.

适用于