다음을 통해 공유


ModuleAlreadyExistsException Constructors

Definition

Overloads

Name Description
ModuleAlreadyExistsException(String)

Creates an instance of ModuleAlreadyExistsException with the specified module Id, an empty error message and marks it as non-transient.

ModuleAlreadyExistsException(SerializationInfo, StreamingContext)

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

ModuleAlreadyExistsException(String, Exception)

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

ModuleAlreadyExistsException(String, String)

Creates an instance of ModuleAlreadyExistsException with the specified module Id and the service returned tracking Id associated with this particular error, and marks it as non-transient.

ModuleAlreadyExistsException(String)

Creates an instance of ModuleAlreadyExistsException with the specified module Id, an empty error message and marks it as non-transient.

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

Parameters

moduleId
String

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

Applies to

ModuleAlreadyExistsException(SerializationInfo, StreamingContext)

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

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

ModuleAlreadyExistsException(String, Exception)

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

public ModuleAlreadyExistsException(string message, Exception innerException);
new Microsoft.Azure.Devices.Common.Exceptions.ModuleAlreadyExistsException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.ModuleAlreadyExistsException
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

ModuleAlreadyExistsException(String, String)

Creates an instance of ModuleAlreadyExistsException with the specified module Id and the service returned tracking Id associated with this particular error, and marks it as non-transient.

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

Parameters

moduleId
String

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

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to