Sdílet prostřednictvím


XPathException Konstruktory

Definice

Inicializuje novou instanci XPathException třídy .

Přetížení

XPathException()

Inicializuje novou instanci XPathException třídy .

XPathException(String)

Inicializuje novou instanci XPathException třídy se zadanou zprávou o výjimce.

XPathException(SerializationInfo, StreamingContext)
Zastaralé.

Používá informace v SerializationInfo objektech a StreamingContext k inicializaci nové instance XPathException třídy .

XPathException(String, Exception)

Inicializuje novou instanci XPathException třídy pomocí zadané zprávy o výjimce a Exception objektu.

XPathException()

Zdroj:
XPathException.cs
Zdroj:
XPathException.cs
Zdroj:
XPathException.cs

Inicializuje novou instanci XPathException třídy .

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

Platí pro

XPathException(String)

Zdroj:
XPathException.cs
Zdroj:
XPathException.cs
Zdroj:
XPathException.cs

Inicializuje novou instanci XPathException třídy se zadanou zprávou o výjimce.

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)

Parametry

message
String

Popis chybového stavu.

Platí pro

XPathException(SerializationInfo, StreamingContext)

Zdroj:
XPathException.cs
Zdroj:
XPathException.cs
Zdroj:
XPathException.cs

Upozornění

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

Používá informace v SerializationInfo objektech a StreamingContext k inicializaci nové instance XPathException třídy .

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)

Parametry

info
SerializationInfo

Objekt SerializationInfo , který obsahuje všechny vlastnosti objektu XPathException.

Atributy

Platí pro

XPathException(String, Exception)

Zdroj:
XPathException.cs
Zdroj:
XPathException.cs
Zdroj:
XPathException.cs

Inicializuje novou instanci XPathException třídy pomocí zadané zprávy o výjimce a Exception objektu.

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)

Parametry

message
String

Popis chybového stavu.

innerException
Exception

Ten Exception , který vyhodil XPathException, pokud vůbec nějaký. Tato hodnota může být null.

Platí pro