## Document.CreateEntityReference method

创建一个 EntityReference 对象。另外，如果引用的实体是已知的，则EntityReference节点的子列表与对应的Entity节点的子列表相同。

```csharp
public EntityReference CreateEntityReference(string name)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | String | 实体名称。 |

### 返回值

的[`EntityReference`](../../entityreference/).

### 也可以看看

* class [EntityReference](../../entityreference/)
* class [Document](../)
* 命名空间 [Aspose.Html.Dom](../../document/)
* 部件 [Aspose.HTML](../../../)


