---
title: "WorkingTimeCollection.Contains"
url: "https://reference.aspose.com/tasks/net/aspose.tasks/workingtimecollection/contains/"
product: "Aspose.Tasks for .NET API Reference"
description: "WorkingTimeCollection method. Checks if the specified element is in the List. Performs a linear On search"
---

## WorkingTimeCollection.Contains method

Checks if the specified element is in the List. Performs a linear O(n) search.

```csharp
public bool Contains(WorkingTime item)
```

| Parameter | Type | Description |
| --- | --- | --- |
| item | WorkingTime | the specified item. |

### Return Value

True, if specified element found in the list, false otherwise.

### See Also

* class [WorkingTime](../../workingtime/)
* class [WorkingTimeCollection](../)
* namespace [Aspose.Tasks](../../workingtimecollection/)
* assembly [Aspose.Tasks](../../../)


