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
)

Parameters

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

ExceptionCondition
ArgumentException

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

Show:
© 2017 Microsoft