PersistenceException 建構函式

定義

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

多載

PersistenceException()

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

PersistenceException(String)

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

PersistenceException(SerializationInfo, StreamingContext)

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

PersistenceException(String, Exception)

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

PersistenceException()

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

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

適用於

PersistenceException(String)

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

public:
 PersistenceException(System::String ^ message);
public PersistenceException (string message);
new System.ServiceModel.Persistence.PersistenceException : string -> System.ServiceModel.Persistence.PersistenceException
Public Sub New (message As String)

參數

message
String

解釋例外狀況原因的錯誤訊息。

適用於

PersistenceException(SerializationInfo, StreamingContext)

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

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.ServiceModel.Persistence.PersistenceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.Persistence.PersistenceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo,包含所擲回之例外狀況的相關序列化物件資料。

context
StreamingContext

包含有關來源或目的端內容資訊的 StreamingContext

適用於

PersistenceException(String, Exception)

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

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

參數

message
String

解釋例外狀況原因的錯誤訊息。

innerException
Exception

Exception,造成 PersistenceException

適用於