Delen via


DeviceMessageLockLostException Constructors

Definition

Overloads

DeviceMessageLockLostException(String)

Creates an instance of DeviceMessageLockLostException with a specified error message and marks it as non-transient.

DeviceMessageLockLostException(ErrorCode, String)

Creates an instance of DeviceMessageLockLostException with a specified ErrorCode and error message, and marks it as non-transient.

DeviceMessageLockLostException(SerializationInfo, StreamingContext)

Creates an instance of DeviceMessageLockLostException with the SerializationInfo and StreamingContext associated with the exception.

DeviceMessageLockLostException(String, Guid)

Creates an instance of DeviceMessageLockLostException with the device Id and message Id, and marks it as non-transient.

DeviceMessageLockLostException(String, Guid, String)

Creates an instance of DeviceMessageLockLostException with the device Id, message Id and tracking Id, and marks it as non-transient.

DeviceMessageLockLostException(String)

Creates an instance of DeviceMessageLockLostException with a specified error message and marks it as non-transient.

public DeviceMessageLockLostException(string message);
new Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException : string -> Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

DeviceMessageLockLostException(ErrorCode, String)

Creates an instance of DeviceMessageLockLostException with a specified ErrorCode and error message, and marks it as non-transient.

public DeviceMessageLockLostException(Microsoft.Azure.Devices.Common.Exceptions.ErrorCode code, string message);
new Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException : Microsoft.Azure.Devices.Common.Exceptions.ErrorCode * string -> Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException
Public Sub New (code As ErrorCode, message As String)

Parameters

code
ErrorCode

The ErrorCode associated with the error.

message
String

The message that describes the error.

Applies to

DeviceMessageLockLostException(SerializationInfo, StreamingContext)

Creates an instance of DeviceMessageLockLostException with the SerializationInfo and StreamingContext associated with the exception.

protected DeviceMessageLockLostException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException
Protected 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

DeviceMessageLockLostException(String, Guid)

Creates an instance of DeviceMessageLockLostException with the device Id and message Id, and marks it as non-transient.

public DeviceMessageLockLostException(string deviceId, Guid messageId);
new Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException : string * Guid -> Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException
Public Sub New (deviceId As String, messageId As Guid)

Parameters

deviceId
String

The Id of the device to which the message was sent.

messageId
Guid

The Id of the message that was sent.

Applies to

DeviceMessageLockLostException(String, Guid, String)

Creates an instance of DeviceMessageLockLostException with the device Id, message Id and tracking Id, and marks it as non-transient.

public DeviceMessageLockLostException(string deviceId, Guid messageId, string trackingId);
new Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException : string * Guid * string -> Microsoft.Azure.Devices.Common.Exceptions.DeviceMessageLockLostException
Public Sub New (deviceId As String, messageId As Guid, trackingId As String)

Parameters

deviceId
String

The Id of the device to which the message was sent.

messageId
Guid

The Id of the message that was sent.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to