System.Xml.XmlDataDocument.CreateEntityReference Method

Creates an System.Xml.XmlEntityReference with the specified name.

Syntax

public override XmlEntityReference CreateEntityReference (string name)

Parameters

name
The name of the entity reference.

Returns

An System.Xml.XmlEntityReference with the specified name.

Remarks

System.Xml.XmlEntityReference nodes cannot be created for System.Xml.XmlDataDocument objects. Calling this method throws an exception.

Requirements

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