語言

PersistenceException 建構函式

定義

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

多載

名稱 Description
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

the that 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。

適用於