InstanceLockedException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化类的 InstanceLockedException 实例。
重载
InstanceLockedException()
初始化类的 InstanceLockedException 实例。
public:
InstanceLockedException();
public InstanceLockedException();
Public Sub New ()
适用于
InstanceLockedException(String)
使用作为参数传递的错误消息初始化类的 InstanceLockedException 实例。
public:
InstanceLockedException(System::String ^ message);
public InstanceLockedException(string message);
new System.Runtime.DurableInstancing.InstanceLockedException : string -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (message As String)
参数
- message
- String
异常的原因。
适用于
InstanceLockedException(SerializationInfo, StreamingContext)
使用序列化的数据初始化类的 InstanceLockedException 实例。
protected:
InstanceLockedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
protected InstanceLockedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Security.SecurityCritical>]
new System.Runtime.DurableInstancing.InstanceLockedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.DurableInstancing.InstanceLockedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
有关当前异常的信息。
- context
- StreamingContext
有关源或目标的上下文信息。
- 属性
适用于
InstanceLockedException(String, Exception)
使用错误消息和作为参数传递的内部异常信息初始化类的 InstanceLockedException 实例。
public:
InstanceLockedException(System::String ^ message, Exception ^ innerException);
public InstanceLockedException(string message, Exception innerException);
new System.Runtime.DurableInstancing.InstanceLockedException : string * Exception -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
异常的原因。
- innerException
- Exception
导致当前异常的异常。
注解
由于上一个异常而引发的异常通常包括对属性中上一个异常的 InnerException 引用。
适用于
InstanceLockedException(XName, Guid)
InstanceLockedException使用命令的 XName(命名空间和名称组合)以及作为参数传递命令的目标实例的 ID 初始化类的实例。
public:
InstanceLockedException(System::Xml::Linq::XName ^ commandName, Guid instanceId);
public InstanceLockedException(System.Xml.Linq.XName commandName, Guid instanceId);
new System.Runtime.DurableInstancing.InstanceLockedException : System.Xml.Linq.XName * Guid -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (commandName As XName, instanceId As Guid)
参数
- commandName
- XName
命令的 XName(命名空间和名称的组合)。
- instanceId
- Guid
对其执行命令的目标实例的 ID。
适用于
InstanceLockedException(XName, Guid, Exception)
InstanceLockedException使用命令的 XName(命名空间和名称组合)、执行命令的目标实例的 ID 以及作为参数传递的内部异常信息初始化类的实例。
public:
InstanceLockedException(System::Xml::Linq::XName ^ commandName, Guid instanceId, Exception ^ innerException);
public InstanceLockedException(System.Xml.Linq.XName commandName, Guid instanceId, Exception innerException);
new System.Runtime.DurableInstancing.InstanceLockedException : System.Xml.Linq.XName * Guid * Exception -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (commandName As XName, instanceId As Guid, innerException As Exception)
参数
- commandName
- XName
命令的 XName(命名空间和名称的组合)。
- instanceId
- Guid
对其执行命令的目标实例的 ID。
- innerException
- Exception
导致当前异常的异常。
适用于
InstanceLockedException(XName, Guid, Guid, IDictionary<XName,Object>)
InstanceLockedException使用命令的 XName(命名空间和名称组合)、执行命令的目标实例的 ID、当前对实例具有锁的所有者的 ID 以及作为参数传递的所有者的可序列化元数据信息初始化类的实例。
public:
InstanceLockedException(System::Xml::Linq::XName ^ commandName, Guid instanceId, Guid instanceOwnerId, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Object ^> ^ serializableInstanceOwnerMetadata);
public InstanceLockedException(System.Xml.Linq.XName commandName, Guid instanceId, Guid instanceOwnerId, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,object> serializableInstanceOwnerMetadata);
new System.Runtime.DurableInstancing.InstanceLockedException : System.Xml.Linq.XName * Guid * Guid * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (commandName As XName, instanceId As Guid, instanceOwnerId As Guid, serializableInstanceOwnerMetadata As IDictionary(Of XName, Object))
参数
- commandName
- XName
命令的 XName(命名空间和名称的组合)。
- instanceId
- Guid
对其执行命令的目标实例的 ID。
- instanceOwnerId
- Guid
当前对实例具有锁的所有者的 ID。
- serializableInstanceOwnerMetadata
- IDictionary<XName,Object>
有关实例所有者的可序列化元数据信息(谁在实例上具有锁)。
适用于
InstanceLockedException(XName, Guid, String, Exception)
使用命令的 XName(命名空间和名称组合)、执行命令的目标实例 InstanceLockedException 的 ID、解释异常原因的错误消息以及导致当前异常作为参数传递的异常的异常初始化类的实例。
public:
InstanceLockedException(System::Xml::Linq::XName ^ commandName, Guid instanceId, System::String ^ message, Exception ^ innerException);
public InstanceLockedException(System.Xml.Linq.XName commandName, Guid instanceId, string message, Exception innerException);
new System.Runtime.DurableInstancing.InstanceLockedException : System.Xml.Linq.XName * Guid * string * Exception -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (commandName As XName, instanceId As Guid, message As String, innerException As Exception)
参数
- commandName
- XName
命令的 XName(命名空间和名称的组合)。
- instanceId
- Guid
对其执行命令的目标实例的 ID。
- message
- String
说明异常原因的错误消息。
- innerException
- Exception
导致当前异常的异常。
适用于
InstanceLockedException(XName, Guid, Guid, IDictionary<XName,Object>, Exception)
使用命令的 XName(命名空间和名称的组合)初始化类的 InstanceLockedException 实例、执行命令的目标实例的 ID、当前对实例具有锁的所有者的 ID、有关所有者的可序列化元数据信息以及导致当前异常作为参数传递的异常。
public:
InstanceLockedException(System::Xml::Linq::XName ^ commandName, Guid instanceId, Guid instanceOwnerId, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Object ^> ^ serializableInstanceOwnerMetadata, Exception ^ innerException);
public InstanceLockedException(System.Xml.Linq.XName commandName, Guid instanceId, Guid instanceOwnerId, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,object> serializableInstanceOwnerMetadata, Exception innerException);
new System.Runtime.DurableInstancing.InstanceLockedException : System.Xml.Linq.XName * Guid * Guid * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> * Exception -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (commandName As XName, instanceId As Guid, instanceOwnerId As Guid, serializableInstanceOwnerMetadata As IDictionary(Of XName, Object), innerException As Exception)
参数
- commandName
- XName
命令的 XName(命名空间和名称的组合)。
- instanceId
- Guid
对其执行命令的目标实例的 ID。
- instanceOwnerId
- Guid
当前对实例具有锁的所有者的 ID。
- serializableInstanceOwnerMetadata
- IDictionary<XName,Object>
有关实例所有者的可序列化元数据信息(谁在实例上具有锁)。
- innerException
- Exception
导致当前异常的异常。
适用于
InstanceLockedException(XName, Guid, Guid, IDictionary<XName,Object>, String, Exception)
使用命令的 XName(命名空间和名称的组合)初始化类的 InstanceLockedException 实例、执行命令的目标实例的 ID、当前对实例具有锁的所有者的 ID、有关所有者的可序列化元数据信息、解释异常原因的错误消息、 以及导致作为参数传递的当前异常的异常。
public:
InstanceLockedException(System::Xml::Linq::XName ^ commandName, Guid instanceId, Guid instanceOwnerId, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Object ^> ^ serializableInstanceOwnerMetadata, System::String ^ message, Exception ^ innerException);
public InstanceLockedException(System.Xml.Linq.XName commandName, Guid instanceId, Guid instanceOwnerId, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,object> serializableInstanceOwnerMetadata, string message, Exception innerException);
new System.Runtime.DurableInstancing.InstanceLockedException : System.Xml.Linq.XName * Guid * Guid * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> * string * Exception -> System.Runtime.DurableInstancing.InstanceLockedException
Public Sub New (commandName As XName, instanceId As Guid, instanceOwnerId As Guid, serializableInstanceOwnerMetadata As IDictionary(Of XName, Object), message As String, innerException As Exception)
参数
- commandName
- XName
命令的 XName(命名空间和名称的组合)。
- instanceId
- Guid
对其执行命令的目标实例的 ID。
- instanceOwnerId
- Guid
当前对实例具有锁定的所有者的 ID。
- serializableInstanceOwnerMetadata
- IDictionary<XName,Object>
有关实例所有者的可序列化元数据信息(谁在实例上具有锁)。
- message
- String
说明异常原因的错误消息。
- innerException
- Exception
导致当前异常的异常。