Share via


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

适用于