WriteEntityRef Method
Collapse the table of content
Expand the table of content

XmlWriter.WriteEntityRef 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 an entity reference as &name;.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public abstract void WriteEntityRef(
	string name


Type: System.String
The name of the entity reference.


name is either null or String.Empty.

Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows CE Platform Note: When using this method with the XmlDictionaryWriter on the .NET Compact Framework, it throws a NotSupportedException.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft