语言

XsltCompileException 构造函数

定义

初始化 XsltCompileException 类的新实例。

重载

名称 说明
XsltCompileException()

初始化 XsltCompileException 类的新实例。

XsltCompileException(String)

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

XsltCompileException(SerializationInfo, StreamingContext)
已过时.

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

XsltCompileException(String, Exception)

初始化类指定错误消息的新实例 XsltCompileException ,以及对此异常原因的内部异常的引用。

XsltCompileException(Exception, String, Int32, Int32)

初始化 XsltCompileException 类的新实例。

XsltCompileException()

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

注意

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

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

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

扔Exception了 。XsltCompileException

sourceUri
String

样式表的位置路径。

lineNumber
Int32

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

linePosition
Int32

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

适用于