Delen via


IotHubNotFoundException Constructors

Definition

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