## Document.CreateEntityReference method

Creates an EntityReference object. In addition, if the referenced entity is known, the child list of the EntityReference node is made the same as that of the corresponding Entity node.

```csharp
public EntityReference CreateEntityReference(string name)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The entity name. |

### Return Value

The [`EntityReference`](../../entityreference/).

### See Also

* class [EntityReference](../../entityreference/)
* class [Document](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
