XmlException Constructors

Definition

Overloads

XmlException()

Initializes a new instance of the XmlException class.

XmlException(String)

Initializes a new instance of the XmlException class with a specified error message.

XmlException(SerializationInfo, StreamingContext)

Initializes a new instance of the XmlException class.

XmlException(String, Exception)

Initializes a new instance of the XmlException class with a specified error message and a reference to the inner exception that is the cause of this exception.

XmlException()

Initializes a new instance of the XmlException class.

public XmlException ();
Public Sub New ()

Applies to

XmlException(String)

Initializes a new instance of the XmlException class with a specified error message.

public XmlException (string message);
new Microsoft.IdentityModel.Xml.XmlException : string -> Microsoft.IdentityModel.Xml.XmlException
Public Sub New (message As String)

Parameters

message
System.String

The error message that explains the reason for the exception.

Applies to

XmlException(SerializationInfo, StreamingContext)

Initializes a new instance of the XmlException class.

protected XmlException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.IdentityModel.Xml.XmlException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.IdentityModel.Xml.XmlException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
System.Runtime.Serialization.SerializationInfo

the System.Runtime.Serialization.SerializationInfo that holds the serialized object data.

context
System.Runtime.Serialization.StreamingContext

The contextual information about the source or destination.

Applies to

XmlException(String, Exception)

Initializes a new instance of the XmlException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public XmlException (string message, Exception innerException);
new Microsoft.IdentityModel.Xml.XmlException : string * Exception -> Microsoft.IdentityModel.Xml.XmlException
Public Sub New (message As String, innerException As Exception)

Parameters

message
System.String

The error message that explains the reason for the exception.

innerException
System.Exception

The System.Exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Applies to