Delen via


FabricElementAlreadyExistsException Constructors

Definition

Overloads

FabricElementAlreadyExistsException()

Initializes a new instance of FabricElementAlreadyExistsException class with error code Unknown.

FabricElementAlreadyExistsException(FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error code.

FabricElementAlreadyExistsException(String)

Initializes a new instance of FabricElementAlreadyExistsException class with error code Unknown and a specified error message.

FabricElementAlreadyExistsException(SerializationInfo, StreamingContext)

Initializes a new instance of FabricElementAlreadyExistsException class from the serialized object data, with a specified context.

FabricElementAlreadyExistsException(String, Exception)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error message and a reference to the inner exception that is the cause of this exception.

FabricElementAlreadyExistsException(String, FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with specified error message and error code.

FabricElementAlreadyExistsException(SerializationInfo, StreamingContext, FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error code, with specified context and error code.

FabricElementAlreadyExistsException(String, Exception, FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error message, a reference to the inner exception that is the cause of this exception, and a specified error code.

FabricElementAlreadyExistsException()

Initializes a new instance of FabricElementAlreadyExistsException class with error code Unknown.

public FabricElementAlreadyExistsException ();
Public Sub New ()

Applies to

FabricElementAlreadyExistsException(FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error code.

public FabricElementAlreadyExistsException (System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricElementAlreadyExistsException : System.Fabric.FabricErrorCode -> System.Fabric.FabricElementAlreadyExistsException
Public Sub New (errorCode As FabricErrorCode)

Parameters

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricElementAlreadyExistsException(String)

Initializes a new instance of FabricElementAlreadyExistsException class with error code Unknown and a specified error message.

public FabricElementAlreadyExistsException (string message);
new System.Fabric.FabricElementAlreadyExistsException : string -> System.Fabric.FabricElementAlreadyExistsException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

FabricElementAlreadyExistsException(SerializationInfo, StreamingContext)

Initializes a new instance of FabricElementAlreadyExistsException class from the serialized object data, with a specified context.

protected FabricElementAlreadyExistsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Fabric.FabricElementAlreadyExistsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Fabric.FabricElementAlreadyExistsException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo object that contains serialized object data of the exception being thrown.

context
StreamingContext

The StreamingContext object that contains contextual information about the source or destination. The context parameter is reserved for future use and can be null.

Applies to

FabricElementAlreadyExistsException(String, Exception)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public FabricElementAlreadyExistsException (string message, Exception inner);
new System.Fabric.FabricElementAlreadyExistsException : string * Exception -> System.Fabric.FabricElementAlreadyExistsException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception or null if no inner exception is specified. The Exception class provides more details about the inner exception.

Applies to

FabricElementAlreadyExistsException(String, FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with specified error message and error code.

public FabricElementAlreadyExistsException (string message, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricElementAlreadyExistsException : string * System.Fabric.FabricErrorCode -> System.Fabric.FabricElementAlreadyExistsException
Public Sub New (message As String, errorCode As FabricErrorCode)

Parameters

message
String

The error message that explains the reason for the exception.

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricElementAlreadyExistsException(SerializationInfo, StreamingContext, FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error code, with specified context and error code.

protected FabricElementAlreadyExistsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricElementAlreadyExistsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext * System.Fabric.FabricErrorCode -> System.Fabric.FabricElementAlreadyExistsException
Protected Sub New (info As SerializationInfo, context As StreamingContext, errorCode As FabricErrorCode)

Parameters

info
SerializationInfo

The SerializationInfo object that contains serialized object data of the exception being thrown.

context
StreamingContext

The StreamingContext object that contains contextual information about the source or destination. The context parameter is reserved for future use and can be null.

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricElementAlreadyExistsException(String, Exception, FabricErrorCode)

Initializes a new instance of FabricElementAlreadyExistsException class with a specified error message, a reference to the inner exception that is the cause of this exception, and a specified error code.

public FabricElementAlreadyExistsException (string message, Exception inner, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricElementAlreadyExistsException : string * Exception * System.Fabric.FabricErrorCode -> System.Fabric.FabricElementAlreadyExistsException
Public Sub New (message As String, inner As Exception, errorCode As FabricErrorCode)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception or null if no inner exception is specified. The Exception class provides more details about the inner exception.

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to