Bagikan melalui


Xml.Document Properti

Definisi

Perhatian

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

Mendapatkan atau mengatur XmlDocument untuk ditampilkan dalam Xml kontrol.

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

Nilai Properti

untuk XmlDocument ditampilkan dalam Xml kontrol.

Atribut

Keterangan

Properti Document sudah usang. Untuk menentukan XML yang akan ditampilkan dalam Xml kontrol, gunakan DocumentContent properti atau DocumentSource properti . Untuk informasi selengkapnya tentang alternatif ini, lihat gambaran umum kelas untuk Xml kontrol.

Dokumen XML yang akan ditampilkan dalam Xml kontrol ditentukan dalam salah satu dari tiga cara. Anda dapat menentukan System.Xml.XmlDocument objek, string XML, atau file XML dengan mengatur properti yang sesuai. Properti Document digunakan untuk menentukan System.Xml.XmlDocument (mewakili dokumen XML) untuk ditampilkan dalam kontrol.

Berlaku untuk

Lihat juga