XmlSchemaValidationException.SetSourceObject(Object) 方法

定义

设置导致此错误的 XML 节点。Sets the XML node that causes the error.

protected public:
 void SetSourceObject(System::Object ^ sourceObject);
protected internal void SetSourceObject (object sourceObject);
member this.SetSourceObject : obj -> unit
Protected Friend Sub SetSourceObject (sourceObject As Object)

参数

sourceObject
Object

源对象。The source object.

注解

改用 Source 属性。Use the Source property instead.

适用于