Compartir por


Xml.Document Propiedad

Definición

Precaució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

Obtiene o establece el objeto XmlDocument que se va a mostrar en el Xml control .

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 propiedad

que XmlDocument se va a mostrar en el Xml control .

Atributos

Comentarios

La Document propiedad está obsoleta. Para especificar el XML que se mostrará en el Xml control, use la DocumentContent propiedad o la DocumentSource propiedad . Para obtener más información sobre estas alternativas, consulte la información general sobre la clase para el Xml control.

El documento XML que se va a mostrar en el Xml control se especifica de una de tres maneras. Puede especificar un System.Xml.XmlDocument objeto, una cadena XML o un archivo XML estableciendo la propiedad adecuada. La Document propiedad se usa para especificar un System.Xml.XmlDocument objeto (que representa un documento XML) para mostrarlo en el control .

Se aplica a

Consulte también