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.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- text
- Type: System.String
The text to place inside the CDATA block.
| Exception | Condition |
|---|---|
| ArgumentException | The text would result in a non-well formed XML document. |
Show: