System.Xml.XmlWriter.WriteEntityRef Method

When overridden in a derived class, writes out an entity reference as &name;.

Syntax

public abstract void WriteEntityRef (string name)

Parameters

name
The name of the entity reference.

Exceptions

TypeReason
ArgumentException name is either null or string.Empty.

Remarks

For the asynchronous version of this method, see XmlWriter.WriteEntityRefAsync(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