XsltException 建構函式

定義

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

多載

XsltException()

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

XsltException(String)

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

XsltException(SerializationInfo, StreamingContext)
已淘汰.

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

XsltException(String, Exception)

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

XsltException()

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

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

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

適用於

XsltException(String)

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

使用指定的錯誤訊息,初始化 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)

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 物件中的資訊,初始化 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)

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

初始化 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

錯誤條件的描述。

innerException
Exception

擲回 XsltExceptionException (如果有的話)。 這個值可以是 null

適用於