Sdílet prostřednictvím


IXmlSerializationAdapter.WriteXml(XmlWriter, Object) Method

Definition

Serialize an object to its xml representation. Implementation of this interface should:

  1. produce a valid xml document(not just a fragment), just as XmlSerializer does.
  2. 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

Applies to