XsltCompileException 建構函式

定義

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

多載

XsltCompileException()

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

XsltCompileException(String)

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

XsltCompileException(SerializationInfo, StreamingContext)
已淘汰.

使用 SerializationInfoStreamingContext 物件中的資訊,初始化 XsltCompileException 類別的新執行個體。

XsltCompileException(String, Exception)

使用指定的錯誤訊息和導致這個例外狀況原因的內部例外狀況參考,初始化 XsltCompileException 類別的新執行個體。

XsltCompileException(Exception, String, Int32, Int32)

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

XsltCompileException()

Source:
XsltException.cs
Source:
XsltException.cs
Source:
XsltException.cs

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

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

適用於

XsltCompileException(String)

Source:
XsltException.cs
Source:
XsltException.cs
Source:
XsltException.cs

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

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

參數

message
String

描述錯誤的訊息。

適用於

XsltCompileException(SerializationInfo, StreamingContext)

Source:
XsltException.cs
Source:
XsltException.cs
Source:
XsltException.cs

警告

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用 SerializationInfoStreamingContext 物件中的資訊,初始化 XsltCompileException 類別的新執行個體。

protected:
 XsltCompileException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XsltCompileException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected XsltCompileException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xml.Xsl.XsltCompileException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Xsl.XsltCompileException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Xml.Xsl.XsltCompileException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Xsl.XsltCompileException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo 物件包含 XsltCompileException 所有的屬性。

context
StreamingContext

包含內容資訊的 StreamingContext 物件。

屬性

適用於

XsltCompileException(String, Exception)

Source:
XsltException.cs
Source:
XsltException.cs
Source:
XsltException.cs

使用指定的錯誤訊息和導致這個例外狀況原因的內部例外狀況參考,初始化 XsltCompileException 類別的新執行個體。

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

參數

message
String

描述錯誤的訊息。

innerException
Exception

導致目前例外狀況發生的例外狀況;如果沒有指定任何的內部例外狀況,則為 null

適用於

XsltCompileException(Exception, String, Int32, Int32)

Source:
XsltException.cs
Source:
XsltException.cs
Source:
XsltException.cs

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

public:
 XsltCompileException(Exception ^ inner, System::String ^ sourceUri, int lineNumber, int linePosition);
public XsltCompileException (Exception inner, string sourceUri, int lineNumber, int linePosition);
new System.Xml.Xsl.XsltCompileException : Exception * string * int * int -> System.Xml.Xsl.XsltCompileException
Public Sub New (inner As Exception, sourceUri As String, lineNumber As Integer, linePosition As Integer)

參數

inner
Exception

擲回 XsltCompileExceptionException

sourceUri
String

樣式表的位置路徑。

lineNumber
Int32

表示樣式表中發生錯誤的行號。

linePosition
Int32

表示樣式表中發生錯誤的行位置。

適用於