Partager via


X509CertificateEndpointIdentity Constructeurs

Définition

Initialise une nouvelle instance de la classe X509CertificateEndpointIdentity.

Surcharges

X509CertificateEndpointIdentity(X509Certificate2)

Initialise une nouvelle instance de la classe à l’aide X509CertificateEndpointIdentity d’un certificat existant.

X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection)

Initialise une nouvelle instance de la classe X509CertificateEndpointIdentity à l'aide du certificat principal (nœud terminal) et des certificats qui font partie de sa chaîne d'approbation.

Remarques

Choisissez entre les constructeurs selon que des supportingCertificates sont requis ou non.

X509CertificateEndpointIdentity(X509Certificate2)

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

Initialise une nouvelle instance de la classe à l’aide X509CertificateEndpointIdentity d’un certificat existant.

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)

Paramètres

certificate
X509Certificate2

Certificat à cloner.

Exceptions

certificate a la valeur null.

Remarques

Le certificate est ajouté à une collection de certificats.

S’applique à

X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection)

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

Initialise une nouvelle instance de la classe X509CertificateEndpointIdentity à l'aide du certificat principal (nœud terminal) et des certificats qui font partie de sa chaîne d'approbation.

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)

Paramètres

primaryCertificate
X509Certificate2

Certificat principal représentant l'identité du service.

supportingCertificates
X509Certificate2Collection

Certificats qui font partie de la chaîne d'approbation du certificat principal.

Exceptions

primaryCertificate ou supportingCertificates est null.

Remarques

primaryCertificate et supportingCertificates sont ajoutés à une collection de certificats.

S’applique à