IXmlSerializationAdapter.WriteXml(XmlWriter, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serialize an object to its xml representation. Implementation of this interface should:
- produce a valid xml document(not just a fragment), just as XmlSerializer does.
- escape invalid xml characters in the string representation of the given object, if any, using 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)
Parameters
- writer
- XmlWriter
- objectToSerialize
- Object