InstanceKeyCollisionException Constructor (XName, Guid, InstanceKey, Guid)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.
Namespace: System.Runtime.Persistence
Assembly: System.Runtime (in System.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
commandName As XName, _
instanceId As Guid, _
instanceKey As InstanceKey, _
conflictingInstanceId As Guid _
)
'Usage
Dim commandName As XName
Dim instanceId As Guid
Dim instanceKey As InstanceKey
Dim conflictingInstanceId As Guid
Dim instance As New InstanceKeyCollisionException(commandName, _
instanceId, instanceKey, conflictingInstanceId)
public InstanceKeyCollisionException(
XName commandName,
Guid instanceId,
InstanceKey instanceKey,
Guid conflictingInstanceId
)
public:
InstanceKeyCollisionException(
XName^ commandName,
Guid instanceId,
InstanceKey^ instanceKey,
Guid conflictingInstanceId
)
new :
commandName:XName *
instanceId:Guid *
instanceKey:InstanceKey *
conflictingInstanceId:Guid -> InstanceKeyCollisionException
Parameters
- commandName
Type: System.Xml.Linq.XName
The XName (the combination of namespace and name) of the command.
- instanceId
Type: System.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
Type: System.Runtime.Persistence.InstanceKey
The instance key information.
- conflictingInstanceId
Type: System.Guid
The ID of the instance that is currently associated with the instance key.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4
.NET Framework Client Profile
Supported in: 4
See Also
Reference
InstanceKeyCollisionException Class
InstanceKeyCollisionException Members