共用方式為


IotHubClientException Constructors

Definition

Overloads

IotHubClientException()

Creates an instance of this class.

IotHubClientException(SerializationInfo, StreamingContext)

Creates an instance of this class.

IotHubClientException(String, Exception)

Creates an instance of this class.

IotHubClientException(String, IotHubClientErrorCode, Exception)

Creates an instance of this class.

IotHubClientException(String, Boolean, Exception)

Creates an instance of this class.

IotHubClientException(String, Boolean, String, Exception)

Creates an instance of this class.

IotHubClientException(String, String, IotHubClientErrorCode, Exception)

Creates an instance of this class.

IotHubClientException()

Creates an instance of this class.

protected internal IotHubClientException ();
Protected Friend Sub New ()

Applies to

IotHubClientException(SerializationInfo, StreamingContext)

Creates an instance of this class.

protected internal IotHubClientException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Client.IotHubClientException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Client.IotHubClientException
Protected Friend Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

IotHubClientException(String, Exception)

Creates an instance of this class.

protected internal IotHubClientException (string message, Exception innerException = default);
new Microsoft.Azure.Devices.Client.IotHubClientException : string * Exception -> Microsoft.Azure.Devices.Client.IotHubClientException
Protected Friend Sub New (message As String, Optional innerException As Exception = Nothing)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

IotHubClientException(String, IotHubClientErrorCode, Exception)

Creates an instance of this class.

protected internal IotHubClientException (string message, Microsoft.Azure.Devices.Client.IotHubClientErrorCode errorCode, Exception innerException = default);
new Microsoft.Azure.Devices.Client.IotHubClientException : string * Microsoft.Azure.Devices.Client.IotHubClientErrorCode * Exception -> Microsoft.Azure.Devices.Client.IotHubClientException
Protected Friend Sub New (message As String, errorCode As IotHubClientErrorCode, Optional innerException As Exception = Nothing)

Parameters

message
String

The message that describes the error.

errorCode
IotHubClientErrorCode

The specific error code.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

IotHubClientException(String, Boolean, Exception)

Creates an instance of this class.

protected internal IotHubClientException (string message, bool isTransient, Exception innerException = default);
new Microsoft.Azure.Devices.Client.IotHubClientException : string * bool * Exception -> Microsoft.Azure.Devices.Client.IotHubClientException
Protected Friend Sub New (message As String, isTransient As Boolean, Optional innerException As Exception = Nothing)

Parameters

message
String

The message that describes the error.

isTransient
Boolean

Indicates if the error is transient and should be retried.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

IotHubClientException(String, Boolean, String, Exception)

Creates an instance of this class.

protected internal IotHubClientException (string message, bool isTransient, string trackingId, Exception innerException = default);
new Microsoft.Azure.Devices.Client.IotHubClientException : string * bool * string * Exception -> Microsoft.Azure.Devices.Client.IotHubClientException
Protected Friend Sub New (message As String, isTransient As Boolean, trackingId As String, Optional innerException As Exception = Nothing)

Parameters

message
String

The message that describes the error.

isTransient
Boolean

Indicates if the error is transient and should be retried.

trackingId
String

The service returned tracking Id associated with this particular error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

IotHubClientException(String, String, IotHubClientErrorCode, Exception)

Creates an instance of this class.

protected internal IotHubClientException (string message, string trackingId, Microsoft.Azure.Devices.Client.IotHubClientErrorCode errorCode, Exception innerException = default);
new Microsoft.Azure.Devices.Client.IotHubClientException : string * string * Microsoft.Azure.Devices.Client.IotHubClientErrorCode * Exception -> Microsoft.Azure.Devices.Client.IotHubClientException
Protected Friend Sub New (message As String, trackingId As String, errorCode As IotHubClientErrorCode, Optional innerException As Exception = Nothing)

Parameters

message
String

The message that describes the error.

trackingId
String

The service returned tracking Id associated with this particular error.

errorCode
IotHubClientErrorCode

The specific error code.

innerException
Exception

The exception that is the cause of the current exception.

Applies to