Xml.Document Propriedade

Definição

Atenção

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

Obtém ou define o XmlDocument para mostrar no Xml controlo.

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

Valor de Propriedade

O XmlDocument to é exibido no Xml controlo.

Atributos

Observações

A Document propriedade está obsoleta. Para especificar o XML que será exibido no Xml controlo, use a DocumentContent propriedade ou a DocumentSource propriedade. Para mais informações sobre estas alternativas, consulte a visão geral da classe para o Xml controlo.

O documento XML a mostrar no Xml controlo é especificado de três formas. Pode especificar um System.Xml.XmlDocument objeto, uma string XML ou um ficheiro XML definindo a propriedade apropriada. A Document propriedade é usada para especificar um System.Xml.XmlDocument (representando um documento XML) a ser exibido no controlo.

Aplica-se a

Ver também