XsltCompileException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XsltCompileException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| XsltCompileException() |
初始化 XsltCompileException 類別的新執行個體。 |
| XsltCompileException(String) |
使用指定的錯誤訊息,初始化 XsltCompileException 類別的新實例。 |
| XsltCompileException(SerializationInfo, StreamingContext) |
已淘汰.
利用 和 |
| XsltCompileException(String, Exception) |
初始化類別指定錯誤訊息的新實例 XsltCompileException ,並參考導致此異常的內部例外。 |
| XsltCompileException(Exception, String, Int32, Int32) |
初始化 |
XsltCompileException()
初始化 XsltCompileException 類別的新執行個體。
public:
XsltCompileException();
public XsltCompileException();
Public Sub New ()
適用於
XsltCompileException(String)
使用指定的錯誤訊息,初始化 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)
警告
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)
初始化類別指定錯誤訊息的新實例 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)
初始化 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)
參數
- sourceUri
- String
樣式表的位置路徑。
- lineNumber
- Int32
行號顯示樣式表中錯誤發生的位置。
- linePosition
- Int32
行位指示樣式表中錯誤發生的位置。