PersistenceException 建構函式

定義

初始化 PersistenceException 類別的新執行個體。

多載

PersistenceException()

初始化 PersistenceException 類別的新執行個體。

PersistenceException(String)

使用指定的訊息,初始化 PersistenceException 類別的新執行個體。

PersistenceException(SerializationInfo, StreamingContext)

使用指定的 PersistenceException 和指定的 SerializationInfo 來初始化 StreamingContext 類別的新執行個體。

PersistenceException(String, Exception)

使用指定的訊息和 PersistenceException 初始化 Exception 的新執行個體。

PersistenceException()

初始化 PersistenceException 類別的新執行個體。

public:
 PersistenceException();
public PersistenceException ();
Public Sub New ()

適用於

PersistenceException(String)

使用指定的訊息,初始化 PersistenceException 類別的新執行個體。

public:
 PersistenceException(System::String ^ message);
public PersistenceException (string message);
new System.Workflow.Runtime.Hosting.PersistenceException : string -> System.Workflow.Runtime.Hosting.PersistenceException
Public Sub New (message As String)

參數

message
String

例外狀況的原因描述。

適用於

PersistenceException(SerializationInfo, StreamingContext)

使用指定的 PersistenceException 和指定的 SerializationInfo 來初始化 StreamingContext 類別的新執行個體。

protected:
 PersistenceException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PersistenceException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Workflow.Runtime.Hosting.PersistenceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Workflow.Runtime.Hosting.PersistenceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

含有序列化物件資料的 SerializationInfo

context
StreamingContext

StreamingContext,存放關於來源或目的端的內容資訊。

備註

這個建構函式是在還原序列化期間呼叫,以便重新組成透過資料流傳輸的例外狀況物件。 如需詳細資訊,請參閱 < XML 和 SOAP 序列化

適用於

PersistenceException(String, Exception)

使用指定的訊息和 PersistenceException 初始化 Exception 的新執行個體。

public:
 PersistenceException(System::String ^ message, Exception ^ innerException);
public PersistenceException (string message, Exception innerException);
new System.Workflow.Runtime.Hosting.PersistenceException : string * Exception -> System.Workflow.Runtime.Hosting.PersistenceException
Public Sub New (message As String, innerException As Exception)

參數

message
String

例外狀況的原因描述。

innerException
Exception

導致擲回 PersistenceException 的例外狀況。

適用於