Compartir a través de


XPathException Constructores

Definición

Inicializa una nueva instancia de la clase XPathException.

Sobrecargas

XPathException()

Inicializa una nueva instancia de la clase XPathException.

XPathException(String)

Inicializa una nueva instancia de la clase XPathException con el mensaje de excepción especificado.

XPathException(SerializationInfo, StreamingContext)
Obsoletos.

Utiliza la información en los objetos SerializationInfo y StreamingContext para inicializar una nueva instancia de la clase XPathException.

XPathException(String, Exception)

Inicializa una nueva instancia de la clase XPathException mediante el mensaje de excepción especificado y el objeto Exception.

XPathException()

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

Inicializa una nueva instancia de la clase XPathException.

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

Se aplica a

XPathException(String)

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

Inicializa una nueva instancia de la clase XPathException con el mensaje de excepción especificado.

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)

Parámetros

message
String

Descripción de la condición de error.

Se aplica a

XPathException(SerializationInfo, StreamingContext)

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

Precaución

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

Utiliza la información en los objetos SerializationInfo y StreamingContext para inicializar una nueva instancia de la clase XPathException.

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)

Parámetros

info
SerializationInfo

Objeto SerializationInfo que contiene todas las propiedades de una XPathException.

Atributos

Se aplica a

XPathException(String, Exception)

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

Inicializa una nueva instancia de la clase XPathException mediante el mensaje de excepción especificado y el objeto Exception.

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)

Parámetros

message
String

Descripción de la condición de error.

innerException
Exception

Exception que inició XPathException, en caso de que exista. Este valor puede ser null.

Se aplica a