When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text.
Type Reason ArgumentException The text would result in a non-well formed XML document. InvalidOperationException The XmlWriter.WriteState is WriteState.Closed.
If text is either null or String.Empty, this method writes an empty CDATA block, for example <![CDATA[]]>.
For the asynchronous version of this method, see XmlWriter.WriteCDataAsync(string).