共用方式為


Xml.Document 屬性

定義

警告

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

屬性值

在控制面板中顯示XmlXmlDocument

屬性

備註

屬性 Document 已經過時。 若要指定控制項中將顯示 Xml 的 XML,請使用 屬性 DocumentContent 或屬性 DocumentSource 。 欲了解更多關於這些替代方案的資訊,請參閱對照組的類別概述 Xml

控制項中要顯示 Xml 的 XML 文件有三種方式之一。 你可以透過設定適當的屬性來指定 System.Xml.XmlDocument 物件、XML 字串或 XML 檔案。 該 Document 屬性用於指定 System.Xml.XmlDocument 一個(代表 XML 文件)要在控制項中顯示。

適用於

另請參閱