DeviceNotFoundException DeviceNotFoundException 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
type DeviceNotFoundException = class
    inherit IotHubException
Public NotInheritable Class DeviceNotFoundException
Inherits IotHubException
Inheritance
DeviceNotFoundExceptionDeviceNotFoundExceptionDeviceNotFoundException
Attributes

Constructors

DeviceNotFoundException(SerializationInfo, StreamingContext) DeviceNotFoundException(SerializationInfo, StreamingContext) DeviceNotFoundException(SerializationInfo, StreamingContext)

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

DeviceNotFoundException(String) DeviceNotFoundException(String) DeviceNotFoundException(String)

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

DeviceNotFoundException(String, Exception) DeviceNotFoundException(String, Exception) 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) DeviceNotFoundException(String, String) 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, String, String) DeviceNotFoundException(String, String, String) 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.

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) Inherited from IotHubException

Properties

IsTransient IsTransient IsTransient Inherited from IotHubException
TrackingId TrackingId TrackingId Inherited from IotHubException

Extension Methods

CheckIotHubErrorCode(Exception, ErrorCode[]) CheckIotHubErrorCode(Exception, ErrorCode[]) CheckIotHubErrorCode(Exception, ErrorCode[])
DisablePrepareForRethrow(Exception) DisablePrepareForRethrow(Exception) DisablePrepareForRethrow(Exception)
GetReferenceCode(Exception) GetReferenceCode(Exception) GetReferenceCode(Exception)
IsFatal(Exception) IsFatal(Exception) IsFatal(Exception)
PrepareForRethrow(Exception) PrepareForRethrow(Exception) PrepareForRethrow(Exception)
ToStringSlim(Exception) ToStringSlim(Exception) ToStringSlim(Exception)
Unwind(Exception) Unwind(Exception) Unwind(Exception)
Unwind(Exception, Type[]) Unwind(Exception, Type[]) Unwind(Exception, Type[])
Unwind<TException>(Exception) Unwind<TException>(Exception) Unwind<TException>(Exception)
IsWrappedExceptionTransient(Exception) IsWrappedExceptionTransient(Exception) IsWrappedExceptionTransient(Exception)
FindInnerException<T>(Exception) FindInnerException<T>(Exception) FindInnerException<T>(Exception)

Applies to