XsltException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XsltException
類別的新執行個體。
多載
XsltException() |
初始化 XsltException 類別的新執行個體。 |
XsltException(String) |
使用指定的錯誤訊息,初始化 XsltException 類別的新執行個體。 |
XsltException(SerializationInfo, StreamingContext) |
已淘汰.
使用 SerializationInfo 和 StreamingContext 物件中的資訊,初始化 |
XsltException(String, Exception) |
初始化 |
XsltException()
XsltException(String)
使用指定的錯誤訊息,初始化 XsltException 類別的新執行個體。
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
描述錯誤的訊息。
適用於
XsltException(SerializationInfo, StreamingContext)
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用 SerializationInfo 和 StreamingContext 物件中的資訊,初始化 XsltException
類別的新執行個體。
protected:
XsltException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XsltException (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 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
[<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.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
所有的屬性。
- context
- StreamingContext
StreamingContext
物件。
- 屬性
適用於
XsltException(String, Exception)
初始化 XsltException
類別的新執行個體。
public:
XsltException(System::String ^ message, Exception ^ innerException);
public XsltException (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
錯誤條件的描述。