IotHubNotFoundException 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
IotHubNotFoundException(String) |
Creates an instance of this class with a name of the IoT hub and marks it as non-transient. |
IotHubNotFoundException(SerializationInfo, StreamingContext) |
Creates an instance of IotHubNotFoundException with the SerializationInfo and StreamingContext associated with the exception. |
IotHubNotFoundException(String, String) |
Creates an instance of this class with a name of the IoT hub and tracking Id, and marks it as non-transient. |
IotHubNotFoundException(String)
Creates an instance of this class with a name of the IoT hub and marks it as non-transient.
public IotHubNotFoundException (string iotHubName);
new Microsoft.Azure.Devices.Common.Exceptions.IotHubNotFoundException : string -> Microsoft.Azure.Devices.Common.Exceptions.IotHubNotFoundException
Public Sub New (iotHubName As String)
Parameters
- iotHubName
- String
The name of the IoT hub.
Applies to
IotHubNotFoundException(SerializationInfo, StreamingContext)
Creates an instance of IotHubNotFoundException with the SerializationInfo and StreamingContext associated with the exception.
protected IotHubNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Common.Exceptions.IotHubNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Common.Exceptions.IotHubNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Applies to
IotHubNotFoundException(String, String)
Creates an instance of this class with a name of the IoT hub and tracking Id, and marks it as non-transient.
public IotHubNotFoundException (string iotHubName, string trackingId);
new Microsoft.Azure.Devices.Common.Exceptions.IotHubNotFoundException : string * string -> Microsoft.Azure.Devices.Common.Exceptions.IotHubNotFoundException
Public Sub New (iotHubName As String, trackingId As String)
Parameters
- iotHubName
- String
The name of the IoT hub.
- trackingId
- String
The service returned tracking Id associated with this particular error.
Applies to
Azure SDK for .NET