InstanceLockedException Constructor (XName, Guid, Guid, IDictionary<XName, Object>)
[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 InstanceLockedException class using the XName (the combination of namespace and name) of the command, the ID of the target instance against which the command was executed, the ID of the owner that currently has a lock on the instance, and serializable metadata information of the owner 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, _
instanceOwnerId As Guid, _
serializableInstanceOwnerMetadata As IDictionary(Of XName, Object) _
)
'Usage
Dim commandName As XName
Dim instanceId As Guid
Dim instanceOwnerId As Guid
Dim serializableInstanceOwnerMetadata As IDictionary(Of XName, Object)
Dim instance As New InstanceLockedException(commandName, _
instanceId, instanceOwnerId, serializableInstanceOwnerMetadata)
public InstanceLockedException(
XName commandName,
Guid instanceId,
Guid instanceOwnerId,
IDictionary<XName, Object> serializableInstanceOwnerMetadata
)
public:
InstanceLockedException(
XName^ commandName,
Guid instanceId,
Guid instanceOwnerId,
IDictionary<XName^, Object^>^ serializableInstanceOwnerMetadata
)
new :
commandName:XName *
instanceId:Guid *
instanceOwnerId:Guid *
serializableInstanceOwnerMetadata:IDictionary<XName, Object> -> InstanceLockedException
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 target instance against which the command was executed.
- instanceOwnerId
Type: System.Guid
The ID of the owner that currently has a lock on the instance.
- serializableInstanceOwnerMetadata
Type: System.Collections.Generic.IDictionary<XName, Object>
Serializable metadata information about the instance owner (who has a lock on the instance).
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
InstanceLockedException Members