语言

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 控件 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

属性值

要 XmlDocument 显示在控件中 Xml 。

属性

注解

属性 Document 已过时。 若要指定将在控件中显示的 Xml XML,请使用 DocumentContent 属性或 DocumentSource 属性。 有关这些替代项的详细信息,请参阅控件的 Xml 类概述。

控件中显示的 Xml XML 文档以三种方式之一指定。 可以通过设置相应的属性来指定 System.Xml.XmlDocument 对象、XML 字符串或 XML 文件。 该 Document 属性用于指定 System.Xml.XmlDocument 在控件中显示的(表示 XML 文档)。

适用于

另请参阅