XsltCompileException 构造函数

定义

初始化 XsltCompileException 类的新实例。

重载

XsltCompileException()

初始化 XsltCompileException 类的新实例。

XsltCompileException(String)

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

XsltCompileException(SerializationInfo, StreamingContext)
已过时.

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

XsltCompileException(String, Exception)

使用指定错误信息和对作为此异常原因的内部异常的引用来初始化 XsltCompileException 类的新实例。

XsltCompileException(Exception, String, Int32, Int32)

初始化 XsltCompileException 类的新实例。

XsltCompileException()

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

初始化 XsltCompileException 类的新实例。

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

适用于

XsltCompileException(String)

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

用指定的错误消息初始化 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)

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 对象中的信息初始化 XsltCompileException 类的新实例。

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}")]
protected XsltCompileException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xml.Xsl.XsltCompileException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Xsl.XsltCompileException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo 对象,包含 XsltCompileException 的所有属性。

context
StreamingContext

StreamingContext 对象,包含上下文信息。

属性

适用于

XsltCompileException(String, Exception)

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

使用指定错误信息和对作为此异常原因的内部异常的引用来初始化 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)

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

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

参数

inner
Exception

引发 XsltCompileExceptionException

sourceUri
String

样式表的位置路径。

lineNumber
Int32

行号,指示样式表中发生错误的位置。

linePosition
Int32

行位置,指示样式表中发生错误的位置。

适用于