Mono Class Library: System.Xml.XmlWriter Overview | Members

System.Xml.XmlWriter.WriteStartDocument Method

Writes the XML declaration with the version "1.0" and the standalone attribute. [Edit]

public abstract void WriteStartDocument (bool standalone)

Parameters

standalone
A bool where true indicates to write "standalone= yes"; false indicates to write "standalone=no". [Edit]

Exceptions

TypeReason
InvalidOperationExceptionThe XmlWriter.WriteState is not WriteState.Start. [Edit]

Remarks

Note:

Character encoding is set when the class in instantiated.

Operation
As described above.

Note to Inheritors
This method must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0