XmlSchemaValidationException Constructors

Definition

Initializes a new instance of the XmlSchemaValidationException class.

Overloads

XmlSchemaValidationException()

Initializes a new instance of the XmlSchemaValidationException class.

XmlSchemaValidationException(String)

Initializes a new instance of the XmlSchemaValidationException class with the exception message specified.

XmlSchemaValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the XmlSchemaValidationException class with the SerializationInfo and StreamingContext objects specified.

XmlSchemaValidationException(String, Exception)

Initializes a new instance of the XmlSchemaValidationException class with the exception message and original Exception object that caused this exception specified.

XmlSchemaValidationException(String, Exception, Int32, Int32)

Initializes a new instance of the XmlSchemaValidationException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified.

XmlSchemaValidationException()

Initializes a new instance of the XmlSchemaValidationException class.

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

XmlSchemaValidationException(String)

Initializes a new instance of the XmlSchemaValidationException class with the exception message specified.

public:
 XmlSchemaValidationException(System::String ^ message);
public XmlSchemaValidationException (string message);
new System.Xml.Schema.XmlSchemaValidationException : string -> System.Xml.Schema.XmlSchemaValidationException
Public Sub New (message As String)

Parameters

message
String

A string description of the error condition.

XmlSchemaValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the XmlSchemaValidationException class with the SerializationInfo and StreamingContext objects specified.

protected:
 XmlSchemaValidationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XmlSchemaValidationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xml.Schema.XmlSchemaValidationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaValidationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Remarks

This constructor is called by derived class constructors to initialize state in this type.

XmlSchemaValidationException(String, Exception)

Initializes a new instance of the XmlSchemaValidationException class with the exception message and original Exception object that caused this exception specified.

public:
 XmlSchemaValidationException(System::String ^ message, Exception ^ innerException);
public XmlSchemaValidationException (string message, Exception innerException);
new System.Xml.Schema.XmlSchemaValidationException : string * Exception -> System.Xml.Schema.XmlSchemaValidationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A string description of the error condition.

innerException
Exception

The original Exception object that caused this exception.

XmlSchemaValidationException(String, Exception, Int32, Int32)

Initializes a new instance of the XmlSchemaValidationException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified.

public:
 XmlSchemaValidationException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaValidationException (string message, Exception innerException, int lineNumber, int linePosition);
new System.Xml.Schema.XmlSchemaValidationException : string * Exception * int * int -> System.Xml.Schema.XmlSchemaValidationException
Public Sub New (message As String, innerException As Exception, lineNumber As Integer, linePosition As Integer)

Parameters

message
String

A string description of the error condition.

innerException
Exception

The original Exception object that caused this exception.

lineNumber
Int32

The line number of the XML that caused this exception.

linePosition
Int32

The line position of the XML that caused this exception.

Applies to