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)
利用指令的 XName(命名空間與名稱的組合)及執行命令所對目標實例的 ID 作為參數傳遞,初始化類別的 InstanceLockedException 實例。
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)
利用指令的 XName(命名空間與名稱的組合)、執行指令的目標實例的 ID,以及以參數形式傳遞的內部異常資訊,初始化該 InstanceLockedException 類別的實例。
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>)
利用指令的 XName(命名空間與名稱的組合)、指令執行目標實例的 ID、目前對該實例有鎖定的擁有者的 ID,以及可序列化的擁有者元資料資訊作為參數傳遞,初始化類別的 InstanceLockedException 實例。
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(命名空間與名稱組合)、指令執行目標實例的 ID、解釋異常原因的錯誤訊息,以及以參數形式傳遞的當前異常,初始化該類別的實例 InstanceLockedException 。
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(命名空間與名稱的組合)、執行指令的目標實例的 ID、目前擁有該實例鎖定的擁有者的 ID、擁有者的可序列化元資料資訊,以及作為參數傳遞的當前例外來初始化該類別的實例 InstanceLockedException 。
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(命名空間與名稱的組合)、執行該指令的目標實例的 ID、目前對該實例有鎖定的擁有者的 ID、擁有者可序列化的元資料資訊,以及解釋例外原因的錯誤訊息,初始化該類別的 InstanceLockedException 實例, 而導致當前異常的例外則以參數形式傳遞。
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
就是那個例外導致了現在的例外。