CreateEntityReference()

XmlDocument::CreateEntityReference(const String&) method

Creates an XmlEntityReference with the specified name.

virtual SharedPtr<XmlEntityReference> System::Xml::XmlDocument::CreateEntityReference(const String &name)

Arguments

ParameterTypeDescription
nameconst String&The name of the entity reference.

Return Value

The new XmlEntityReference.

Exceptions

ExceptionDescription
ArgumentExceptionThe name is invalid (for example, names starting with ‘#’ are invalid.)

See Also