Compartilhar via


Xml.Document Propriedade

Definição

Cuidado

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 a XmlDocument exibição no Xml controle.

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 da propriedade

O XmlDocument para exibir no Xml controle.

Atributos

Comentários

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

O documento XML a ser exibido no Xml controle é especificado de uma das três maneiras. Você pode especificar um System.Xml.XmlDocument objeto, uma cadeia de caracteres XML ou um arquivo XML definindo a propriedade apropriada. A Document propriedade é usada para especificar um System.Xml.XmlDocument (representando um documento XML) a ser exibido no controle.

Aplica-se a

Confira também