语言

XsltException 构造函数

定义

初始化 XsltException 类的新实例。

重载

名称 说明
XsltException()

初始化 XsltException 类的新实例。

XsltException(String)

使用指定的错误消息初始化类的新实例 XsltException 。

XsltException(SerializationInfo, StreamingContext)
已过时.

使用对象中XsltExceptionSerializationInfo的信息初始化类的新实例StreamingContext。

XsltException(String, Exception)

初始化 XsltException 类的新实例。

XsltException()

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

注意

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

使用对象中XsltExceptionSerializationInfo的信息初始化类的新实例StreamingContext。

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

扔 Exception 的 XsltException,如果有的话。 此值可为 null。

适用于