X509CertificateEndpointIdentity 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 X509CertificateEndpointIdentity 类的新实例。
重载
X509CertificateEndpointIdentity(X509Certificate2) |
使用现有证书初始化 类的新实例 X509CertificateEndpointIdentity 。 |
X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection) |
使用主要(叶)证书和作为其信任链一部分的证书初始化此the X509CertificateEndpointIdentity类的新实例。 |
注解
基于是否需要 supportingCertificates
在构造函数中进行选择。
X509CertificateEndpointIdentity(X509Certificate2)
使用现有证书初始化 类的新实例 X509CertificateEndpointIdentity 。
public:
X509CertificateEndpointIdentity(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public X509CertificateEndpointIdentity (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.ServiceModel.X509CertificateEndpointIdentity : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.ServiceModel.X509CertificateEndpointIdentity
Public Sub New (certificate As X509Certificate2)
参数
- certificate
- X509Certificate2
要克隆的证书。
例外
certificate
为 null
。
注解
certificate
将添加到证书集合中。
适用于
X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection)
使用主要(叶)证书和作为其信任链一部分的证书初始化此the X509CertificateEndpointIdentity类的新实例。
public:
X509CertificateEndpointIdentity(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ primaryCertificate, System::Security::Cryptography::X509Certificates::X509Certificate2Collection ^ supportingCertificates);
public X509CertificateEndpointIdentity (System.Security.Cryptography.X509Certificates.X509Certificate2 primaryCertificate, System.Security.Cryptography.X509Certificates.X509Certificate2Collection supportingCertificates);
new System.ServiceModel.X509CertificateEndpointIdentity : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2Collection -> System.ServiceModel.X509CertificateEndpointIdentity
Public Sub New (primaryCertificate As X509Certificate2, supportingCertificates As X509Certificate2Collection)
参数
- primaryCertificate
- X509Certificate2
表示服务标识的主要证书。
- supportingCertificates
- X509Certificate2Collection
作为主要证书信任链一部分的证书。
例外
primaryCertificate
或 supportingCertificates
为 null
。
注解
primaryCertificate
和 supportingCertificates
将添加到证书集合中。