XmlSchemaException.SourceSchemaObject 属性

定义

生成 XmlSchemaObjectXmlSchemaExceptionThe XmlSchemaObject that produced the XmlSchemaException.

public:
 property System::Xml::Schema::XmlSchemaObject ^ SourceSchemaObject { System::Xml::Schema::XmlSchemaObject ^ get(); };
public System.Xml.Schema.XmlSchemaObject SourceSchemaObject { get; }
member this.SourceSchemaObject : System.Xml.Schema.XmlSchemaObject
Public ReadOnly Property SourceSchemaObject As XmlSchemaObject

属性值

有效的对象实例表示 XML“架构对象模型”(SOM) 中的结构验证错误。A valid object instance represents a structural validation error in the XML Schema Object Model (SOM).

注解

这可以查询 XML 架构定义语言(XSD)架构文件的 LineNumberLinePositionSourceUriThis can be queried for the LineNumber, LinePosition, and SourceUri of the XML Schema definition language (XSD) schema file. nil 的返回值指示 SOM 中句法分析验证错误。A return value of nil indicates a syntactic parsing validation error in the SOM.

适用于