PublisherMembershipCondition(X509Certificate) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用确定成员身份的 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
。
注解
如果代码由软件发布者使用与指定公钥证书对应的私钥签名,则代码满足成员资格条件。