# WithEntityQueryOptionsAttribute

> Specifies that this IJobEntity should include a given EntityQueryOption found as attributes of the IJobEntity

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## WithEntityQueryOptionsAttribute(EntityQueryOptions)

Specifies that this IJobEntity should include a given EntityQueryOption found as attributes of the IJobEntity

> **Warning:**
>
> **Removed.** This type has been renamed to WithOptions. (Removed after Entities 1.0)
>
> **Upgrade to** [WithOptionsAttribute](/engine/7000.0/script-reference/unity/entities/withoptionsattribute.md)

```csharp
public WithEntityQueryOptionsAttribute(EntityQueryOptions option)
```

### Parameters

**** (\[EntityQueryOptions]\(/engine/7000.0/script-reference/unity/entities/entityqueryoptions)): The query options

## WithEntityQueryOptionsAttribute(EntityQueryOptions\[])

Specifies that this IJobEntity should include a given EntityQueryOption found as attributes of the IJobEntity

> **Warning:**
>
> **Removed.** This type has been renamed to WithOptions. (Removed after Entities 1.0)
>
> **Upgrade to** [WithOptionsAttribute](/engine/7000.0/script-reference/unity/entities/withoptionsattribute.md)

```csharp
public WithEntityQueryOptionsAttribute(params EntityQueryOptions[] options)
```

### Parameters

**** (\[EntityQueryOptions\[]]\(/engine/7000.0/script-reference/unity/entities/entityqueryoptions)): The query options
