Sdílet prostřednictvím


Xml.Document Vlastnost

Definice

Upozornění

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

Získá nebo nastaví XmlDocument zobrazení v ovládacím Xml prvku.

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

Hodnota vlastnosti

Zobrazení XmlDocument v ovládacím Xml prvku

Atributy

Poznámky

Vlastnost Document je zastaralá. Chcete-li zadat XML, který se zobrazí v ovládacím Xml prvku, použijte DocumentContent vlastnost nebo DocumentSource vlastnost. Další informace o těchto alternativách najdete v přehledu Xml třídy pro ovládací prvek.

Dokument XML, který se má zobrazit v ovládacím Xml prvku, je zadán jedním ze tří způsobů. Objekt, řetězec XML nebo soubor XML můžete určit System.Xml.XmlDocument nastavením příslušné vlastnosti. Vlastnost Document slouží k zadání System.Xml.XmlDocument (představující dokument XML) pro zobrazení v ovládacím prvku.

Platí pro

Viz také