X509CertificateEndpointIdentity 构造函数

定义

初始化 X509CertificateEndpointIdentity 类的新实例。

重载

X509CertificateEndpointIdentity(X509Certificate2)

使用现有证书初始化 类的新实例 X509CertificateEndpointIdentity

X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection)

使用主要(叶)证书和作为其信任链一部分的证书初始化此the X509CertificateEndpointIdentity类的新实例。

注解

基于是否需要 supportingCertificates 在构造函数中进行选择。

X509CertificateEndpointIdentity(X509Certificate2)

Source:
X509CertificateEndpointIdentity.cs
Source:
X509CertificateEndpointIdentity.cs
Source:
X509CertificateEndpointIdentity.cs

使用现有证书初始化 类的新实例 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

要克隆的证书。

例外

certificatenull

注解

certificate 将添加到证书集合中。

适用于

X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection)

Source:
X509CertificateEndpointIdentity.cs
Source:
X509CertificateEndpointIdentity.cs
Source:
X509CertificateEndpointIdentity.cs

使用主要(叶)证书和作为其信任链一部分的证书初始化此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

作为主要证书信任链一部分的证书。

例外

primaryCertificatesupportingCertificatesnull

注解

primaryCertificatesupportingCertificates 将添加到证书集合中。

适用于