다음을 통해 공유


ModuleNotFoundException Constructors

Definition

Overloads

Name Description
ModuleNotFoundException(SerializationInfo, StreamingContext)

Creates an instance of this class with the SerializationInfo and StreamingContext associated with the exception.

ModuleNotFoundException(String, Exception)

Creates an instance of this class with a specified error message and a reference to the inner exception that caused this exception, and marks it as non-transient.

ModuleNotFoundException(String, String)

Creates an instance of this class with the specified module Id and the device Id in which the module is contained, and marks it as non-transient.

ModuleNotFoundException(String, String, String)

Creates an instance of this class with the specified module Id, the device Id in which the module is contained and the name of the IoT hub, and marks it as non-transient.

ModuleNotFoundException(String, String, String, String)

Creates an instance of this class with the specified module Id, the device Id in which the module is contained, the name of the IoT hub and the tracking Id, and marks it as non-transient.

ModuleNotFoundException(SerializationInfo, StreamingContext)

Creates an instance of this class with the SerializationInfo and StreamingContext associated with the exception.

public ModuleNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException
Public 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

ModuleNotFoundException(String, Exception)

Creates an instance of this class with a specified error message and a reference to the inner exception that caused this exception, and marks it as non-transient.

public ModuleNotFoundException(string message, Exception innerException);
new Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

ModuleNotFoundException(String, String)

Creates an instance of this class with the specified module Id and the device Id in which the module is contained, and marks it as non-transient.

public ModuleNotFoundException(string deviceId, string moduleId);
new Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException : string * string -> Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException
Public Sub New (deviceId As String, moduleId As String)

Parameters

deviceId
String

The Id of the device in which the module is contained.

moduleId
String

The Id of the module that is not registered on the IoT hub.

Applies to

ModuleNotFoundException(String, String, String)

Creates an instance of this class with the specified module Id, the device Id in which the module is contained and the name of the IoT hub, and marks it as non-transient.

public ModuleNotFoundException(string deviceId, string moduleId, string iotHubName);
new Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException : string * string * string -> Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException
Public Sub New (deviceId As String, moduleId As String, iotHubName As String)

Parameters

deviceId
String

The Id of the device in which the module is contained.

moduleId
String

The Id of the module that is not registered on the IoT hub.

iotHubName
String

The name of the IoT hub to which the device and module should have been registered.

Applies to

ModuleNotFoundException(String, String, String, String)

Creates an instance of this class with the specified module Id, the device Id in which the module is contained, the name of the IoT hub and the tracking Id, and marks it as non-transient.

public ModuleNotFoundException(string deviceId, string moduleId, string iotHubName, string trackingId);
new Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException : string * string * string * string -> Microsoft.Azure.Devices.Common.Exceptions.ModuleNotFoundException
Public Sub New (deviceId As String, moduleId As String, iotHubName As String, trackingId As String)

Parameters

deviceId
String

The Id of the device in which the module is contained.

moduleId
String

The Id of the module that is not registered on the IoT hub.

iotHubName
String

The name of the IoT hub to which the device and module should have been registered.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to