Table of Contents

WriteXml Method

Definition

WriteXml(XmlWriter, object, XmlQualifiedEntity)

Converts an object into its XML representation.

public override void WriteXml(XmlWriter writer, object value, XmlQualifiedEntity elementName = null)

Parameters

writer XmlWriter

The XmlWriter stream to which the object is serialized.

value object

The object to convert.

elementName XmlQualifiedEntity

The element name to encapsulate around value.

Exceptions

InvalidOperationException

There is an error in the XML document.