語言

XsltCompileException 建構函式

定義

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

多載

名稱 Description
XsltCompileException()

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

XsltCompileException(String)

使用指定的錯誤訊息,初始化 XsltCompileException 類別的新實例。

XsltCompileException(SerializationInfo, StreamingContext)
已淘汰.

利用 和 XsltCompileException 物件中的SerializationInfo資訊初始化該StreamingContext類別的新實例。

XsltCompileException(String, Exception)

初始化類別指定錯誤訊息的新實例 XsltCompileException ,並參考導致此異常的內部例外。

XsltCompileException(Exception, String, Int32, Int32)

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

XsltCompileException()

來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs

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

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

適用於

XsltCompileException(String)

來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
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)

來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs

警告

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

利用 和 XsltCompileException 物件中的SerializationInfo資訊初始化該StreamingContext類別的新實例。

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);
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}")>]
new System.Xml.Xsl.XsltCompileException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Xsl.XsltCompileException
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)

來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
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)

來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
XsltException.cs
來源:
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

那 Exception 個丟 XsltCompileException出了 .

sourceUri
String

樣式表的位置路徑。

lineNumber
Int32

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

linePosition
Int32

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

適用於