Szerkesztés

Megosztás a következőn keresztül:


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)
Obsolete.

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

Source:
XPathException.cs
Source:
XPathException.cs
Source:
XPathException.cs

Initializes a new instance of the XPathException class.

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

Applies to

XPathException(String)

Source:
XPathException.cs
Source:
XPathException.cs
Source:
XPathException.cs

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

public:
 XPathException(System::String ^ message);
public XPathException (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.

Applies to

XPathException(SerializationInfo, StreamingContext)

Source:
XPathException.cs
Source:
XPathException.cs
Source:
XPathException.cs

Caution

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

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

Attributes

Applies to

XPathException(String, Exception)

Source:
XPathException.cs
Source:
XPathException.cs
Source:
XPathException.cs

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