X509CertificateEndpointIdentity Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Inicializa una nueva instancia de la clase X509CertificateEndpointIdentity.
Sobrecargas
X509CertificateEndpointIdentity(X509Certificate2) |
Inicializa una nueva instancia de la X509CertificateEndpointIdentity clase mediante un certificado existente. |
X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection) |
Inicializa una nueva instancia de esta clase X509CertificateEndpointIdentity usando el certificado primario (hoja) y certificados que forman parte de su cadena de confianza. |
Comentarios
Elija entre los constructores dependiendo de si supportingCertificates
es necesario.
X509CertificateEndpointIdentity(X509Certificate2)
Inicializa una nueva instancia de la X509CertificateEndpointIdentity clase mediante un certificado existente.
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)
Parámetros
- certificate
- X509Certificate2
Certificado que se va a clonar.
Excepciones
certificate
es null
.
Comentarios
certificate
se agrega a una colección de certificados.
Se aplica a
X509CertificateEndpointIdentity(X509Certificate2, X509Certificate2Collection)
Inicializa una nueva instancia de esta clase X509CertificateEndpointIdentity usando el certificado primario (hoja) y certificados que forman parte de su cadena de confianza.
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)
Parámetros
- primaryCertificate
- X509Certificate2
El certificado primario que representa la identidad del servicio.
- supportingCertificates
- X509Certificate2Collection
Los certificados que forman parte de la cadena de confianza del certificado primario.
Excepciones
primaryCertificate
o supportingCertificates
es null
.
Comentarios
Se agregan primaryCertificate
y supportingCertificates
a una colección de certificados.