# WithOptionsAttribute

> 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

## WithOptionsAttribute(EntityQueryOptions)

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

```csharp
public WithOptionsAttribute(EntityQueryOptions option)
```

### Parameters

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

## WithOptionsAttribute(EntityQueryOptions\[])

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

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

### Parameters

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