Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
[This is preliminary documentation and is subject to change.]
Writes the content of this object as xml.
Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
Parameters
- writer
- Type: System.XmlXmlWriter
A XmlWriter that writes the properties of this object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Argument writer cannot be null. |
InvalidOperationException | The writer is closed |
Remarks
The Xml written contains values the object's properties serialized as attributes/value pairs.
<info PROPERTY="VALUE" />
PROPERTY is the name of a property and VALUE represents its value. There will be one attribute for each property in the object.
Note |
---|
This method only writes the content as an Xml fragment and assumes that the caller has written the start of the complete document already. Also, this method does not call the WriteEndDocument method either. The caller must close the writer to ensure that all resources are freed. |
See Also