Udostępnij za pośrednictwem


Xml.Document Właściwość

Definicja

Uwaga

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

Pobiera lub ustawia wartość XmlDocument do wyświetlenia w kontrolce 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

Wartość właściwości

Kontrolka XmlDocument do wyświetlenia w kontrolce Xml .

Atrybuty

Uwagi

Właściwość Document jest przestarzała. Aby określić kod XML, który będzie wyświetlany w kontrolce Xml , użyj DocumentContent właściwości lub DocumentSource właściwości . Aby uzyskać więcej informacji na temat tych alternatyw, zobacz omówienie klasy dla kontrolki Xml .

Dokument XML do wyświetlenia w kontrolce Xml jest określony na jeden z trzech sposobów. Możesz określić System.Xml.XmlDocument obiekt, ciąg XML lub plik XML, ustawiając odpowiednią właściwość. Właściwość Document służy do określania System.Xml.XmlDocument (reprezentującego dokument XML) do wyświetlenia w kontrolce.

Dotyczy

Zobacz też