Delen via


ConfigurationNotFoundException Constructors

Definition

Overloads

ConfigurationNotFoundException(String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration and marks it as non-transient.

ConfigurationNotFoundException(SerializationInfo, StreamingContext)

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

ConfigurationNotFoundException(String, Exception)

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

ConfigurationNotFoundException(String, String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration and the name of the IoT hub, and marks it as non-transient.

ConfigurationNotFoundException(String, String, String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration, the name of the IoT hub and the tracking Id, and marks it as non-transient.

ConfigurationNotFoundException(String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration and marks it as non-transient.

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

Parameters

configurationId
String

The Id of the configuration whose details are unavailable on IoT hub.

Applies to

ConfigurationNotFoundException(SerializationInfo, StreamingContext)

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

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

ConfigurationNotFoundException(String, Exception)

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

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

ConfigurationNotFoundException(String, String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration and the name of the IoT hub, and marks it as non-transient.

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

Parameters

configurationId
String

The Id of the configuration whose details are unavailable on IoT hub.

iotHubName
String

The name of the IoT hub.

Applies to

ConfigurationNotFoundException(String, String, String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration, the name of the IoT hub and the tracking Id, and marks it as non-transient.

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

Parameters

configurationId
String

The Id of the configuration whose details are unavailable on IoT hub.

iotHubName
String

The name of the IoT hub.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to