XsltException 建構函式

定義

初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class.

多載

XsltException()

初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class.

XsltException(String)

使用指定的錯誤訊息,初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class with a specified error message.

XsltException(SerializationInfo, StreamingContext)

使用 XsltExceptionSerializationInfo 物件中的資訊,初始化 StreamingContext 類別的新執行個體。Initializes a new instance of the XsltException class using the information in the SerializationInfo and StreamingContext objects.

XsltException(String, Exception)

初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class.

XsltException()

初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class.

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

XsltException(String)

使用指定的錯誤訊息,初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class with a specified error message.

public:
 XsltException(System::String ^ message);
public XsltException (string message);
new System.Xml.Xsl.XsltException : string -> System.Xml.Xsl.XsltException
Public Sub New (message As String)

參數

message
String

描述錯誤的訊息。The message that describes the error.

XsltException(SerializationInfo, StreamingContext)

使用 XsltExceptionSerializationInfo 物件中的資訊,初始化 StreamingContext 類別的新執行個體。Initializes a new instance of the XsltException class using the information in the SerializationInfo and StreamingContext objects.

protected:
 XsltException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XsltException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xml.Xsl.XsltException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Xsl.XsltException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo 物件包含 XsltException 所有的屬性。The SerializationInfo object containing all the properties of an XsltException.

context
StreamingContext

StreamingContext 物件。The StreamingContext object.

XsltException(String, Exception)

初始化 XsltException 類別的新執行個體。Initializes a new instance of the XsltException class.

public:
 XsltException(System::String ^ message, Exception ^ innerException);
public XsltException (string message, Exception innerException);
new System.Xml.Xsl.XsltException : string * Exception -> System.Xml.Xsl.XsltException
Public Sub New (message As String, innerException As Exception)

參數

message
String

錯誤條件的描述。The description of the error condition.

innerException
Exception

擲回 ExceptionXsltException (如果有的話)。The Exception which threw the XsltException, if any. 這個值可以是 nullThis value can be null.

適用於