Bagikan melalui


XPathException Konstruktor

Definisi

Menginisialisasi instans baru kelas XPathException.

Overload

XPathException()

Menginisialisasi instans baru kelas XPathException.

XPathException(String)

Menginisialisasi instans XPathException baru kelas dengan pesan pengecualian yang ditentukan.

XPathException(SerializationInfo, StreamingContext)
Kedaluwarsa.

Menggunakan informasi dalam SerializationInfo objek dan StreamingContext untuk menginisialisasi instans XPathException baru kelas.

XPathException(String, Exception)

Menginisialisasi instans XPathException baru kelas menggunakan pesan dan Exception objek pengecualian yang ditentukan.

XPathException()

Sumber:
XPathException.cs
Sumber:
XPathException.cs
Sumber:
XPathException.cs

Menginisialisasi instans baru kelas XPathException.

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

Berlaku untuk

XPathException(String)

Sumber:
XPathException.cs
Sumber:
XPathException.cs
Sumber:
XPathException.cs

Menginisialisasi instans XPathException baru kelas dengan pesan pengecualian yang ditentukan.

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)

Parameter

message
String

Deskripsi kondisi kesalahan.

Berlaku untuk

XPathException(SerializationInfo, StreamingContext)

Sumber:
XPathException.cs
Sumber:
XPathException.cs
Sumber:
XPathException.cs

Perhatian

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

Menggunakan informasi dalam SerializationInfo objek dan StreamingContext untuk menginisialisasi instans XPathException baru kelas.

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)

Parameter

info
SerializationInfo

Objek SerializationInfo yang berisi semua properti dari XPathException.

Atribut

Berlaku untuk

XPathException(String, Exception)

Sumber:
XPathException.cs
Sumber:
XPathException.cs
Sumber:
XPathException.cs

Menginisialisasi instans XPathException baru kelas menggunakan pesan dan Exception objek pengecualian yang ditentukan.

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)

Parameter

message
String

Deskripsi kondisi kesalahan.

innerException
Exception

Yang Exception melempar , XPathExceptionjika ada. Nilai ini bisa berupa null.

Berlaku untuk