XsltCompileException Constructors

Definition

Initializes a new instance of the XsltCompileException class.

Overloads

XsltCompileException()

Initializes a new instance of the XsltCompileException class.

XsltCompileException(String)

Initializes a new instance of the XsltCompileException class with a specified error message.

XsltCompileException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the XsltCompileException class using the information in the SerializationInfo and StreamingContext objects.

XsltCompileException(String, Exception)

Initializes a new instance of the XsltCompileException class specified error message and a reference to the inner exception that is the cause of this exception.

XsltCompileException(Exception, String, Int32, Int32)

Initializes a new instance of the XsltCompileException class.

XsltCompileException()

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

Initializes a new instance of the XsltCompileException class.

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

Applies to

XsltCompileException(String)

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

Initializes a new instance of the XsltCompileException class with a specified error message.

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)

Parameters

message
String

The message that describes the error.

Applies to

XsltCompileException(SerializationInfo, StreamingContext)

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

Caution

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

Initializes a new instance of the XsltCompileException class using the information in the SerializationInfo and StreamingContext objects.

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)

Parameters

info
SerializationInfo

The SerializationInfo object containing all the properties of an XsltCompileException.

context
StreamingContext

The StreamingContext object containing the context information.

Attributes

Applies to

XsltCompileException(String, Exception)

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

Initializes a new instance of the XsltCompileException class specified error message and a reference to the inner exception that is the cause of this exception.

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)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

Applies to

XsltCompileException(Exception, String, Int32, Int32)

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

Initializes a new instance of the XsltCompileException class.

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)

Parameters

inner
Exception

The Exception that threw the XsltCompileException.

sourceUri
String

The location path of the style sheet.

lineNumber
Int32

The line number indicating where the error occurred in the style sheet.

linePosition
Int32

The line position indicating where the error occurred in the style sheet.

Applies to