Windows apps
Collapse the table of content
Expand the table of content
Information
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^)

 

Initializes a new instance of the X509CertificateEndpointIdentity class using the primary (leaf) certificate and certificates that are part of its trust chain.

Namespace:   System.ServiceModel
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
Return to top
Show:
© 2017 Microsoft