語言

XpsWriterException 建構函式

定義

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

多載

名稱 Description
XpsWriterException()

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

XpsWriterException(String)

初始化一個提供特定錯誤條件的 XpsWriterException 類別新實例。

XpsWriterException(SerializationInfo, StreamingContext)

初始化一個新的類別實例 XpsWriterException ,提供特定的 SerializationInfo 和 StreamingContext。 這個建造者受到保護。

XpsWriterException(String, Exception)

初始化一個新的類別實例 XpsWriterException ,提供特定錯誤條件並包含例外原因。

XpsWriterException()

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

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

適用於

XpsWriterException(String)

初始化一個提供特定錯誤條件的 XpsWriterException 類別新實例。

public:
 XpsWriterException(System::String ^ message);
public XpsWriterException(string message);
new System.Windows.Xps.XpsWriterException : string -> System.Windows.Xps.XpsWriterException
Public Sub New (message As String)

參數

message
String

String A 描述錯誤條件。

適用於

XpsWriterException(SerializationInfo, StreamingContext)

初始化一個新的類別實例 XpsWriterException ,提供特定的 SerializationInfo 和 StreamingContext。 這個建造者受到保護。

protected:
 XpsWriterException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XpsWriterException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Xps.XpsWriterException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Xps.XpsWriterException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

這些資料是用來序列化或反序列化物件所需的資料。

context
StreamingContext

序列化串流的上下文,包括來源與目的地。

適用於

XpsWriterException(String, Exception)

初始化一個新的類別實例 XpsWriterException ,提供特定錯誤條件並包含例外原因。

public:
 XpsWriterException(System::String ^ message, Exception ^ innerException);
public XpsWriterException(string message, Exception innerException);
new System.Windows.Xps.XpsWriterException : string * Exception -> System.Windows.Xps.XpsWriterException
Public Sub New (message As String, innerException As Exception)

參數

message
String

String A 描述錯誤條件。

innerException
Exception

導致 XpsWriterException.

適用於