Compartir a través de


ClientAuthenticationWithX509Certificate Constructores

Definición

Sobrecargas

ClientAuthenticationWithX509Certificate(X509Certificate2, String, String)

Crea una instancia de esta clase.

ClientAuthenticationWithX509Certificate(X509Certificate2, X509Certificate2Collection, String, String)

Crea una instancia de esta clase.

ClientAuthenticationWithX509Certificate(X509Certificate2, String, String)

Crea una instancia de esta clase.

public ClientAuthenticationWithX509Certificate (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string deviceId, string moduleId = default);
new Microsoft.Azure.Devices.Client.ClientAuthenticationWithX509Certificate : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string -> Microsoft.Azure.Devices.Client.ClientAuthenticationWithX509Certificate
Public Sub New (certificate As X509Certificate2, deviceId As String, Optional moduleId As String = Nothing)

Parámetros

certificate
X509Certificate2

Certificado X.509.

deviceId
String

Identificador de dispositivo.

moduleId
String

Identificador del módulo.

Excepciones

Si certificate es NULL.

Comentarios

El certificate usuario debe eliminar el recurso administrado. Esta clase no la elimina, ya que es posible que el usuario quiera reutilizarla.

Se aplica a

ClientAuthenticationWithX509Certificate(X509Certificate2, X509Certificate2Collection, String, String)

Crea una instancia de esta clase.

public ClientAuthenticationWithX509Certificate (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificateChain, string deviceId, string moduleId = default);
new Microsoft.Azure.Devices.Client.ClientAuthenticationWithX509Certificate : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2Collection * string * string -> Microsoft.Azure.Devices.Client.ClientAuthenticationWithX509Certificate
Public Sub New (clientCertificate As X509Certificate2, certificateChain As X509Certificate2Collection, deviceId As String, Optional moduleId As String = Nothing)

Parámetros

clientCertificate
X509Certificate2

Certificado X.509.

certificateChain
X509Certificate2Collection

Certificados en la cadena de certificados de dispositivo.

deviceId
String

Identificador de dispositivo.

moduleId
String

Identificador del módulo.

Excepciones

Cuando clientCertificate o certificateChain es NULL.

Comentarios

El clientCertificate usuario debe eliminar el recurso administrado. Esta clase no la elimina, ya que es posible que el usuario quiera reutilizarla.

Se aplica a