DeviceNotFoundException Constructors
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.
Overloads
DeviceNotFoundException() |
Initializes a new instance of the class. |
DeviceNotFoundException(String) |
Initializes a new instance of the class with the message string containing the device identifier that could not be found. |
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) |
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, String, String) |
Initializes a new instance of the class with the message string containing the device identifier that could not be found. |
DeviceNotFoundException()
Initializes a new instance of the class.
public DeviceNotFoundException ();
Public Sub New ()
Applies to
DeviceNotFoundException(String)
Initializes a new instance of the class with the message string containing the device identifier that could not be found.
public DeviceNotFoundException (string deviceId);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (deviceId As String)
Parameters
- deviceId
- String
Device identifier that already exists.
Applies to
DeviceNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the class with the specified serialization and context information.
public DeviceNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
An object that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
An object that contains contextual information about the source or destination.
Applies to
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.
public DeviceNotFoundException (string message, Exception innerException);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string * Exception -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
A description of the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
- innerException
- Exception
The exception that is the cause of the current exception
Applies to
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.
public DeviceNotFoundException (string deviceId, string iotHubName);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string * string -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (deviceId As String, iotHubName As String)
Parameters
- deviceId
- String
Device identifier that already exists.
- iotHubName
- String
Name of the IoT hub instance.
Applies to
DeviceNotFoundException(String, String, String)
Initializes a new instance of the class with the message string containing the device identifier that could not be found.
public DeviceNotFoundException (string deviceId, string iotHubName, string trackingId);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string * string * string -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (deviceId As String, iotHubName As String, trackingId As String)
Parameters
- deviceId
- String
Device identifier that already exists.
- iotHubName
- String
Name of the IoT hub instance.
- trackingId
- String
Tracking identifier that is used for telemetry purposes.
Applies to
Azure SDK for .NET