System.Xml.XmlWriter.WriteRaw Method

When overridden in a derived class, writes raw markup manually from a string.

Syntax

public abstract void WriteRaw (string data)

Parameters

data
String containing the text to write.

Exceptions

TypeReason
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed.

Remarks

This method does not escape special characters.

Note:

The System.Xml.XmlWriter does not validate the data that is passed to the XmlWriter.WriteRaw(string) method. You should not pass arbitrary data to this method.

For the asynchronous version of this method, see XmlWriter.WriteRawAsync(string).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0