Xml.Document 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator. http://go.microsoft.com/fwlink/?linkid=14202
在控制鍵中取得或設定 XmlDocument to 顯示 Xml 。
public:
property System::Xml::XmlDocument ^ Document { System::Xml::XmlDocument ^ get(); void set(System::Xml::XmlDocument ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Xml.XmlDocument Document { get; set; }
[System.ComponentModel.Browsable(false)]
[System.Obsolete("The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator. http://go.microsoft.com/fwlink/?linkid=14202")]
public System.Xml.XmlDocument Document { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Document : System.Xml.XmlDocument with get, set
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Document : System.Xml.XmlDocument with get, set
Public Property Document As XmlDocument
屬性值
在控制面板中顯示Xml。XmlDocument
- 屬性
備註
屬性 Document 已經過時。 若要指定控制項中將顯示 Xml 的 XML,請使用 屬性 DocumentContent 或屬性 DocumentSource 。 欲了解更多關於這些替代方案的資訊,請參閱對照組的類別概述 Xml 。
控制項中要顯示 Xml 的 XML 文件有三種方式之一。 你可以透過設定適當的屬性來指定 System.Xml.XmlDocument 物件、XML 字串或 XML 檔案。 該 Document 屬性用於指定 System.Xml.XmlDocument 一個(代表 XML 文件)要在控制項中顯示。