DeviceNotFoundException Class

Definition

The exception is thrown when the device is disabled and will be used to set the status to device disabled in the connection status handler. This exception also corresponds to the following error codes on operation responses:

[System.Serializable]
public sealed class DeviceNotFoundException : Microsoft.Azure.Devices.Client.Exceptions.IotHubException
[<System.Serializable>]
type DeviceNotFoundException = class
    inherit IotHubException
Public NotInheritable Class DeviceNotFoundException
Inherits IotHubException
Inheritance
DeviceNotFoundException
Attributes

Constructors

DeviceNotFoundException()

Initializes a new instance of the class.

DeviceNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the class with the specified serialization and context information.

DeviceNotFoundException(String, Exception)

Initializes a new instance of the class with the message string containing the identifier of the device that could not be found and a reference to the inner exception that is the cause of this exception.

DeviceNotFoundException(String, String, String)

Initializes a new instance of the class with the message string containing the device identifier that could not be found.

DeviceNotFoundException(String, String)

Initializes a new instance of the class with the message string containing the device identifier and the IoT hub instance that could not be found.

DeviceNotFoundException(String)

Initializes a new instance of the class with the message string containing the device identifier that could not be found.

Properties

IsTransient

Indicates if the error is transient and should be retried.

(Inherited from IotHubException)
TrackingId

The service returned tracking Id associated with this particular error.

(Inherited from IotHubException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

(Inherited from IotHubException)

Applies to