WriteCData Method
Collapse the table of content
Expand the table of content

XmlWriter.WriteCData Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public abstract void WriteCData(
	string text


Type: System.String
The text to place inside the CDATA block.


The text would result in a non-well formed XML document.

If text is either null or String.Empty, this method writes an empty CDATA block, for example <![CDATA[]]>.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft