XPathException Constructors

Definition

Initializes a new instance of the XPathException class.

Overloads

XPathException()

Initializes a new instance of the XPathException class.

XPathException(String)

Initializes a new instance of the XPathException class with the specified exception message.

XPathException(SerializationInfo, StreamingContext)

Uses the information in the SerializationInfo and StreamingContext objects to initialize a new instance of the XPathException class.

XPathException(String, Exception)

Initializes a new instance of the XPathException class using the specified exception message and Exception object.

XPathException()

Initializes a new instance of the XPathException class.

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

XPathException(String)

Initializes a new instance of the XPathException class with the specified exception message.

public:
 XPathException(System::String ^ message);
public XPathException (string message);
new System.Xml.XPath.XPathException : string -> System.Xml.XPath.XPathException
Public Sub New (message As String)

Parameters

message
String

The description of the error condition.

XPathException(SerializationInfo, StreamingContext)

Uses the information in the SerializationInfo and StreamingContext objects to initialize a new instance of the XPathException class.

protected:
 XPathException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XPathException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xml.XPath.XPathException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.XPath.XPathException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo object that contains all the properties of an XPathException.

context
StreamingContext

The StreamingContext object.

XPathException(String, Exception)

Initializes a new instance of the XPathException class using the specified exception message and Exception object.

public:
 XPathException(System::String ^ message, Exception ^ innerException);
public XPathException (string message, Exception innerException);
new System.Xml.XPath.XPathException : string * Exception -> System.Xml.XPath.XPathException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The description of the error condition.

innerException
Exception

The Exception that threw the XPathException, if any. This value can be null.

Applies to