---
title: "DOMTokenList.Contains"
url: "https://reference.aspose.com/html/net/aspose.html.collections/domtokenlist/contains/"
product: "Aspose.HTML for .NET API Reference"
description: "DOMTokenList Contains method. Returns true if the list contains the given token otherwise false"
---

## DOMTokenList.Contains method

Returns true if the list contains the given token, otherwise false.

```csharp
public bool Contains(string token)
```

| Parameter | Type | Description |
| --- | --- | --- |
| token | String | The token to locate in the list. |

### Return Value

A Boolean, which is true if the calling list contains token, otherwise false.

### See Also

* class [DOMTokenList](../)
* namespace [Aspose.Html.Collections](../../../aspose.html.collections/)
* assembly [Aspose.HTML](../../../)
