System.Xml.Schema.XmlSchemaValidationException.SetSourceObject Method

Sets the XML node that causes the error.

Syntax

protected void SetSourceObject (object sourceObject)

Parameters

sourceObject
The source object.

Remarks

Use the Exception.Source property instead.

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