XmlSchemaValidator.XmlResolver 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定 XmlResolver 用來解析 xs:import 和 xs: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物件的 XmlSchemaValidator 和 ProcessSchemaLocation 驗證標誌並未設定為預設。 此外,XmlResolver物件的XmlSchemaValidator屬性預設為null 因此,包含、匯入或重新定義元素中引用的外部結構預設不會被解析。