DeviceNotFoundException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The exception that is thrown when an attempt is made to access a device instance that is not registered on the IoT hub.
[System.Serializable]
public sealed class DeviceNotFoundException : Microsoft.Azure.Devices.Common.Exceptions.IotHubException
[<System.Serializable>]
type DeviceNotFoundException = class
inherit IotHubException
Public NotInheritable Class DeviceNotFoundException
Inherits IotHubException
- Inheritance
- Attributes
Constructors
DeviceNotFoundException(ErrorCode, String, Exception) |
Creates an instance of DeviceNotFoundException with a specified ErrorCode, error message and an optional reference to the inner exception that caused this exception. This exception is marked as non-transient. |
DeviceNotFoundException(SerializationInfo, StreamingContext) |
Creates an instance of DeviceNotFoundException with the SerializationInfo and StreamingContext associated with the exception. |
DeviceNotFoundException(String, Exception) |
Creates an instance of DeviceNotFoundException with a specified error message and a reference to the inner exception that caused this exception, and marks it as non-transient. |
DeviceNotFoundException(String, String, String) |
Creates an instance of DeviceNotFoundException with the specified device Id, the name of the IoT hub and the tracking Id, and marks it as non-transient. |
DeviceNotFoundException(String, String) |
Creates an instance of DeviceNotFoundException with the specified device Id and the name of the IoT hub, and marks it as non-transient. |
DeviceNotFoundException(String) |
Creates an instance of DeviceNotFoundException with the specified device Id and marks it as non-transient. |
Properties
Code |
The error code associated with the exception. (Inherited from IotHubException) |
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
Azure SDK for .NET