XPathException Konstruktorer

Definition

Initierar en ny instans av XPathException klassen.

Överlagringar

Name Description
XPathException()

Initierar en ny instans av XPathException klassen.

XPathException(String)

Initierar en ny instans av XPathException klassen med det angivna undantagsmeddelandet.

XPathException(SerializationInfo, StreamingContext)
Föråldrad.

Använder informationen i objekten SerializationInfo och StreamingContext för att initiera en ny instans av XPathException klassen.

XPathException(String, Exception)

Initierar en ny instans av XPathException klassen med det angivna undantagsmeddelandet och Exception -objektet.

XPathException()

Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs

Initierar en ny instans av XPathException klassen.

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

Gäller för

XPathException(String)

Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs

Initierar en ny instans av XPathException klassen med det angivna undantagsmeddelandet.

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)

Parametrar

message
String

Beskrivningen av felvillkoret.

Gäller för

XPathException(SerializationInfo, StreamingContext)

Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs

Varning

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

Använder informationen i objekten SerializationInfo och StreamingContext för att initiera en ny instans av XPathException klassen.

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

Parametrar

info
SerializationInfo

Objektet SerializationInfo som innehåller alla egenskaper för en XPathException.

Attribut

Gäller för

XPathException(String, Exception)

Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs
Källa:
XPathException.cs

Initierar en ny instans av XPathException klassen med det angivna undantagsmeddelandet och Exception -objektet.

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)

Parametrar

message
String

Beskrivningen av felvillkoret.

innerException
Exception

Den Exception som kastade XPathException, om någon. Det här värdet kan vara null.

Gäller för