Skip to main content
XmlDocument.CreateEntityReference | createEntityReference method

Applies to Windows and Windows Phone

Creates a new XmlEntityReference object.

Syntax


var xmlEntityReference = xmlDocument.createEntityReference(name);

public XmlEntityReference CreateEntityReference(
  string name
)

Public Function CreateEntityReference(
  name As String 
) As XmlEntityReference

public:
XmlEntityReference^ CreateEntityReference(
  String^ name
)

Parameters

name

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The name of the entity referenced. This name is subsequently available as the new object's NodeName property.

Return value

Type: XmlEntityReference

The newly created object.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

XmlDocument