XPathException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XPathException.

Przeciążenia

XPathException()

Inicjuje nowe wystąpienie klasy XPathException.

XPathException(String)

Inicjuje XPathException nowe wystąpienie klasy z określonym komunikatem o wyjątku.

XPathException(SerializationInfo, StreamingContext)
Przestarzałe.

Używa informacji w SerializationInfo obiektach i StreamingContext do inicjowania nowego wystąpienia XPathException klasy.

XPathException(String, Exception)

Inicjuje XPathException nowe wystąpienie klasy przy użyciu określonego komunikatu o wyjątku i Exception obiektu.

XPathException()

Źródło:
XPathException.cs
Źródło:
XPathException.cs
Źródło:
XPathException.cs

Inicjuje nowe wystąpienie klasy XPathException.

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

Dotyczy

XPathException(String)

Źródło:
XPathException.cs
Źródło:
XPathException.cs
Źródło:
XPathException.cs

Inicjuje XPathException nowe wystąpienie klasy z określonym komunikatem o wyjątku.

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

Opis warunku błędu.

Dotyczy

XPathException(SerializationInfo, StreamingContext)

Źródło:
XPathException.cs
Źródło:
XPathException.cs
Źródło:
XPathException.cs

Przestroga

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

Używa informacji w SerializationInfo obiektach i StreamingContext do inicjowania nowego wystąpienia XPathException klasy.

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

Obiekt SerializationInfo zawierający wszystkie właściwości obiektu XPathException.

Atrybuty

Dotyczy

XPathException(String, Exception)

Źródło:
XPathException.cs
Źródło:
XPathException.cs
Źródło:
XPathException.cs

Inicjuje XPathException nowe wystąpienie klasy przy użyciu określonego komunikatu o wyjątku i Exception obiektu.

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

Opis warunku błędu.

innerException
Exception

To Exception rzuciło XPathException, jeśli istnieje. Ta wartość może mieć wartość null.

Dotyczy