Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Xml.​Schema.​XmlSchemaValidationException

Assembly: System.Xml.ReaderWriter

Inheritance: object → ExceptionSystemExceptionXmlSchemaException → XmlSchemaValidationException

Implemented Interfaces

Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated.

Properties

public object
SourceObject
Gets the XML node that caused this <see cref="T:System.Xml.Schema.XmlSchemaValidationException" /> .
public int
LineNumber
Gets the line number indicating where the error occurred.
public int
LinePosition
Gets the line position indicating where the error occurred.
public string
Message
Gets the description of the error condition of this exception.
SourceSchemaObject
The <see langword="XmlSchemaObject" /> that produced the <see langword="XmlSchemaException" /> .
public string
SourceUri
Gets the Uniform Resource Identifier (URI) location of the schema that caused the exception.
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Source
public string
StackTrace
TargetSite

Methods

public void
GetObjectData​(Runtime.​Serialization.​SerializationInfo info, Runtime.​Serialization.​StreamingContext context)
Constructs a new <see cref="T:System.Xml.Schema.XmlSchemaValidationException" /> object with the given <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> information that contains all the properties of the <see cref="T:System.Xml.Schema.XmlSchemaValidationException" /> .
info <see cref="T:System.Runtime.Serialization.SerializationInfo" />
context <see cref="T:System.Runtime.Serialization.StreamingContext" />
public Exception
GetBaseException​()
Inherited from Exception
public Type
GetType​()
Inherited from Exception
public string
ToString​()
Inherited from Exception
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object