Xml.Document Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
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
Obtient ou définit l’affichage XmlDocument dans le Xml contrôle.
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
Valeur de propriété
À XmlDocument afficher dans le Xml contrôle.
- Attributs
Remarques
La Document propriété est obsolète. Pour spécifier le code XML qui sera affiché dans le Xml contrôle, utilisez la DocumentContent propriété ou la DocumentSource propriété. Pour plus d’informations sur ces alternatives, consultez la vue d’ensemble de la classe pour le Xml contrôle.
Le document XML à afficher dans le Xml contrôle est spécifié de trois façons. Vous pouvez spécifier un System.Xml.XmlDocument objet, une chaîne XML ou un fichier XML en définissant la propriété appropriée. La Document propriété est utilisée pour spécifier un System.Xml.XmlDocument (représentant un document XML) à afficher dans le contrôle.