Condividi tramite


Xml.Document Proprietà

Definizione

Attenzione

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

Ottiene o imposta l'oggetto XmlDocument da visualizzare nel Xml controllo .

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

Valore della proprietà

Oggetto XmlDocument da visualizzare nel Xml controllo .

Attributi

Commenti

La Document proprietà è obsoleta. Per specificare il codice XML che verrà visualizzato nel Xml controllo, utilizzare la DocumentContent proprietà o la DocumentSource proprietà . Per altre informazioni su queste alternative, vedere la panoramica della classe per il Xml controllo .

Il documento XML da visualizzare nel Xml controllo viene specificato in uno dei tre modi. È possibile specificare un oggetto, una System.Xml.XmlDocument stringa XML o un file XML impostando la proprietà appropriata. La Document proprietà viene utilizzata per specificare un oggetto System.Xml.XmlDocument (che rappresenta un documento XML) da visualizzare nel controllo .

Si applica a

Vedi anche