PublisherMembershipCondition(X509Certificate) 构造函数

定义

使用确定成员身份的 Authenticode X.509v3 证书初始化 PublisherMembershipCondition 类的新实例。

public:
 PublisherMembershipCondition(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
public PublisherMembershipCondition (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
new System.Security.Policy.PublisherMembershipCondition : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Policy.PublisherMembershipCondition
Public Sub New (certificate As X509Certificate)

参数

certificate
X509Certificate

一个 X509Certificate,它包含软件发行者的公钥。

例外

certificate 参数为 null

注解

如果代码由软件发布者使用与指定公钥证书对应的私钥签名,则代码满足成员资格条件。

适用于