InstanceKeyCollisionException Constructors

Definition

Initializes an instance of the InstanceKeyCollisionException class.

Overloads

InstanceKeyCollisionException()

Initializes an instance of the InstanceKeyCollisionException class.

InstanceKeyCollisionException(String)

Initializes an instance of the InstanceKeyCollisionException class with the error message passed as a parameter.

InstanceKeyCollisionException(SerializationInfo, StreamingContext)

Initializes an instance of the InstanceKeyCollisionException class with serialized data.

InstanceKeyCollisionException(String, Exception)

Initializes an instance of the InstanceKeyCollisionException class with the error message and the inner exception information passed as parameters.

InstanceKeyCollisionException(XName, Guid, InstanceKey, Guid)

Initializes an instance of the InstanceKeyCollisionException class with the name of the command, ID of the instance against which the command was executed, instance key information, and the instance ID that is currently associated with the instance key passed as parameters.

InstanceKeyCollisionException(XName, Guid, InstanceKey, Guid, Exception)

Initializes an instance of the InstanceKeyCollisionException class with the name of the command, ID of the instance against which the command was executed, instance key information, the instance ID that is currently associated with the instance key, and inner exception information passed as parameters.

InstanceKeyCollisionException(XName, Guid, InstanceKey, Guid, String, Exception)

Initializes an instance of the InstanceKeyCollisionException class with the name of the command, ID of the instance against which the command was executed, instance key information, the instance ID that is currently associated with the instance key, the error message that describes the exception, and inner exception information passed as parameters.

InstanceKeyCollisionException()

Initializes an instance of the InstanceKeyCollisionException class.

C#
public InstanceKeyCollisionException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InstanceKeyCollisionException(String)

Initializes an instance of the InstanceKeyCollisionException class with the error message passed as a parameter.

C#
public InstanceKeyCollisionException(string message);

Parameters

message
String

The reason for the exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InstanceKeyCollisionException(SerializationInfo, StreamingContext)

Initializes an instance of the InstanceKeyCollisionException class with serialized data.

C#
[System.Security.SecurityCritical]
protected InstanceKeyCollisionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The information about the current exception.

context
StreamingContext

The contextual information about the source or destination.

Attributes

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InstanceKeyCollisionException(String, Exception)

Initializes an instance of the InstanceKeyCollisionException class with the error message and the inner exception information passed as parameters.

C#
public InstanceKeyCollisionException(string message, Exception innerException);

Parameters

message
String

The reason for the exception.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InstanceKeyCollisionException(XName, Guid, InstanceKey, Guid)

Initializes an instance of the InstanceKeyCollisionException class with the name of the command, ID of the instance against which the command was executed, instance key information, and the instance ID that is currently associated with the instance key passed as parameters.

C#
public InstanceKeyCollisionException(System.Xml.Linq.XName commandName, Guid instanceId, System.Runtime.DurableInstancing.InstanceKey instanceKey, Guid conflictingInstanceId);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

instanceId
Guid

The ID of the instance against which the command was executed. The command failed because the instance key is already associated with another instance whose ID is represented by the conflictingInstanceId parameter.

instanceKey
InstanceKey

The instance key information.

conflictingInstanceId
Guid

The ID of the instance that is currently associated with the instance key.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InstanceKeyCollisionException(XName, Guid, InstanceKey, Guid, Exception)

Initializes an instance of the InstanceKeyCollisionException class with the name of the command, ID of the instance against which the command was executed, instance key information, the instance ID that is currently associated with the instance key, and inner exception information passed as parameters.

C#
public InstanceKeyCollisionException(System.Xml.Linq.XName commandName, Guid instanceId, System.Runtime.DurableInstancing.InstanceKey instanceKey, Guid conflictingInstanceId, Exception innerException);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

instanceId
Guid

The ID of the instance against which the command was executed. The command failed because the instance key is already associated with another instance whose ID is represented by the conflictingInstanceId parameter.

instanceKey
InstanceKey

The instance key information.

conflictingInstanceId
Guid

The ID of the instance that is currently associated with the instance key.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InstanceKeyCollisionException(XName, Guid, InstanceKey, Guid, String, Exception)

Initializes an instance of the InstanceKeyCollisionException class with the name of the command, ID of the instance against which the command was executed, instance key information, the instance ID that is currently associated with the instance key, the error message that describes the exception, and inner exception information passed as parameters.

C#
public InstanceKeyCollisionException(System.Xml.Linq.XName commandName, Guid instanceId, System.Runtime.DurableInstancing.InstanceKey instanceKey, Guid conflictingInstanceId, string message, Exception innerException);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

instanceId
Guid

The ID of the instance against which the command was executed. The command failed because the instance key is already associated with another instance whose ID is represented by the conflictingInstanceId parameter.

instanceKey
InstanceKey

The instance key information.

conflictingInstanceId
Guid

The ID of the instance that is currently associated with the instance key.

message
String

The reason for the exception.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1