Condividi tramite


ClientAuthenticationWithX509Certificate Constructors

Definition

Overloads

ClientAuthenticationWithX509Certificate(X509Certificate2, String, String)

Creates an instance of this class.

ClientAuthenticationWithX509Certificate(X509Certificate2, X509Certificate2Collection, String, String)

Creates an instance of this class.

ClientAuthenticationWithX509Certificate(X509Certificate2, String, String)

Creates an instance of this class.

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)

Parameters

certificate
X509Certificate2

X.509 certificate.

deviceId
String

Device identifier.

moduleId
String

Module identifier.

Exceptions

When certificate is null.

Remarks

The certificate managed resource should be disposed by the user. This class doesn't dispose it since the user might want to reuse it.

Applies to

ClientAuthenticationWithX509Certificate(X509Certificate2, X509Certificate2Collection, String, String)

Creates an instance of this class.

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)

Parameters

clientCertificate
X509Certificate2

X.509 certificate.

certificateChain
X509Certificate2Collection

Certificates in the device certificate chain.

deviceId
String

Device identifier.

moduleId
String

Module identifier.

Exceptions

When clientCertificate or certificateChain is null.

Remarks

The clientCertificate managed resource should be disposed by the user. This class doesn't dispose it since the user might want to reuse it.

Applies to