The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
X509CertificateEndpointIdentity Constructor (X509Certificate2^, X509Certificate2Collection^)
.NET Framework (current version)
Initializes a new instance of the X509CertificateEndpointIdentity class using the primary (leaf) certificate and certificates that are part of its trust chain.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public:
X509CertificateEndpointIdentity(
X509Certificate2^ primaryCertificate,
X509Certificate2Collection^ supportingCertificates
)
Parameters
- primaryCertificate
-
Type:
System.Security.Cryptography.X509Certificates::X509Certificate2^
The primary certificate representing the service's identity.
- supportingCertificates
-
Type:
System.Security.Cryptography.X509Certificates::X509Certificate2Collection^
The certificates that are part of the trust chain of the primary certificate.
| Exception | Condition |
|---|---|
| ArgumentNullException | primaryCertificate is null. |
| ArgumentNullException | supportingCertificates is null. |
The primaryCertificate and supportingCertificates are added to a collection of certificates.
.NET Framework
Available since 3.0
Available since 3.0
Show: