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 ();

Applies to

.NET 9 och andra versioner
Produkt Versioner
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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 (string message);

Parameters

message
String

The message that describes the error.

Applies to

.NET 9 och andra versioner
Produkt Versioner
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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);
[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);

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

.NET 9 och andra versioner
Produkt Versioner (Föråldrad)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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 (string message, Exception innerException);

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

.NET 9 och andra versioner
Produkt Versioner
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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, string sourceUri, int lineNumber, int linePosition);

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

.NET 9 och andra versioner
Produkt Versioner
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1