Creates an XmlCData instance in this context.
[Visual Basic] Public Function CreateCData( _ ByVal text As String _ ) As XmlCData [C#] public XmlCData CreateCData( string text ); [C++] public: XmlCData* CreateCData( String* text ); [JScript] public function CreateCData( text : String ) : XmlCData;
An XmlCData instance with the given text.
Exception Type | Condition |
---|---|
ArgumentException | If text is null or contains the character sequence "]]>" in any position. |
An exception is thrown if text contains the caracter sequence "]]>" in any position (that sequence is reserved to indicate the end of a CDATA node).
XmlContext Class | XmlContext Members | System.Xml Namespace