XmlSchemaException Constructors

Definition

Streams all the XmlSchemaException properties into the SerializationInfo class for the given StreamingContext.

Overloads

XmlSchemaException()

Initializes a new instance of the XmlSchemaException class.

XmlSchemaException(String)

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

XmlSchemaException(SerializationInfo, StreamingContext)

Constructs a new XmlSchemaException object with the given SerializationInfo and StreamingContext information that contains all the properties of the XmlSchemaException.

XmlSchemaException(String, Exception)

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

XmlSchemaException(String, Exception, Int32, Int32)

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

XmlSchemaException()

Initializes a new instance of the XmlSchemaException class.

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

XmlSchemaException(String)

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

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

Parameters

message
String

A string description of the error condition.

XmlSchemaException(SerializationInfo, StreamingContext)

Constructs a new XmlSchemaException object with the given SerializationInfo and StreamingContext information that contains all the properties of the XmlSchemaException.

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

Parameters

info
SerializationInfo

SerializationInfo.

context
StreamingContext

StreamingContext.

XmlSchemaException(String, Exception)

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

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

Parameters

message
String

A string description of the error condition.

innerException
Exception

The original T:System.Exception object that caused this exception.

XmlSchemaException(String, Exception, Int32, Int32)

Initializes a new instance of the XmlSchemaException 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:
 XmlSchemaException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaException (string message, Exception innerException, int lineNumber, int linePosition);
new System.Xml.Schema.XmlSchemaException : string * Exception * int * int -> System.Xml.Schema.XmlSchemaException
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 T:System.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