System.Xml.Schema.XmlSchemaValidationException.SourceObject Property

Gets the XML node that caused this System.Xml.Schema.XmlSchemaValidationException.

Syntax

public object SourceObject { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When an System.Xml.Schema.XmlSchemaValidationException is thrown during validation of a class that implements the System.Xml.XPath.IXPathNavigable interface such as the System.Xml.XPath.XPathNavigator or System.Xml.XmlNode class, the object returned by the XmlSchemaValidationException.SourceObject property is an instance of a class that implements the System.Xml.XPath.IXPathNavigable interface.

When an System.Xml.Schema.XmlSchemaValidationException is thrown during validation by a validating System.Xml.XmlReader object, the value of the XmlSchemaValidationException.SourceObject property is null.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0