共用方式為


XmlSchemaValidator.XmlResolver 屬性

定義

設定 XmlResolver 用來解析 xs:importxs:include 元素的物件,以及 xsi:schemaLocation 屬性 xsi:noNamespaceSchemaLocation

public:
 property System::Xml::XmlResolver ^ XmlResolver {  void set(System::Xml::XmlResolver ^ value); };
public System.Xml.XmlResolver? XmlResolver { set; }
public System.Xml.XmlResolver XmlResolver { set; }
member this.XmlResolver : System.Xml.XmlResolver
Public Property XmlResolver As XmlResolver

屬性值

一個 XmlResolver 物件;預設是物件 XmlUrlResolver

備註

這很重要

ProcessInlineSchema物件的 XmlSchemaValidatorProcessSchemaLocation 驗證標誌並未設定為預設。 此外,XmlResolver物件的XmlSchemaValidator屬性預設為null 因此,包含、匯入或重新定義元素中引用的外部結構預設不會被解析。

適用於

另請參閱