Share via


DeviceNotFoundException Class

Definition

The exception that is thrown when an attempt to communicate with a device fails because the given device identifier cannot be found.

[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
System.Exception
DeviceNotFoundException
Attributes
System.SerializableAttribute

Constructors

DeviceNotFoundException()

Initializes a new instance of the DeviceNotFoundException class.

DeviceNotFoundException(SerializationInfo, StreamingContext)

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

DeviceNotFoundException(String, Exception)

Initializes a new instance of the DeviceNotFoundException 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 DeviceNotFoundException class with the message string containing the device identifier that could not be found.

DeviceNotFoundException(String, String)

Initializes a new instance of the DeviceNotFoundException 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 DeviceNotFoundException 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 System.Runtime.Serialization.SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

(Inherited from IotHubException)

Applies to