IXmlSerializationAdapter.WriteXml(XmlWriter, Object) Méthode
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.
Sérialisez un objet vers sa représentation xml. L’implémentation de cette interface doit :
- produit un document xml valide (pas seulement un fragment), tout comme XmlSerializer.
- échappement des caractères xml non valides dans la représentation sous forme de chaîne de l’objet donné, le cas échéant, à l’aide de SfcSecureString.XmlEscape()
public void WriteXml(System.Xml.XmlWriter writer, object objectToSerialize);
abstract member WriteXml : System.Xml.XmlWriter * obj -> unit
Public Sub WriteXml (writer As XmlWriter, objectToSerialize As Object)
Paramètres
- writer
- XmlWriter
- objectToSerialize
- Object