# SetAndModeAsync Method

## Overloads

| [SetAndModeAsync(Boolean)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Field.SetAndModeAsync.htm#Qlik_Engine_Field_SetAndModeAsync_System_Boolean_) |  | Sets a field in the AND mode. |
| --- | --- | --- |
| [SetAndModeAsync(AsyncHandle, Boolean)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Field.SetAndModeAsync.htm#Qlik_Engine_Field_SetAndModeAsync_Qlik_Engine_AsyncHandle_System_Boolean_) |  | Sets a field in the AND mode. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Field.SetAndModeAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Field.SetAndModeAsync.htm)

## SetAndModeAsync(Boolean)

Sets a field in the AND mode.

### Declaration

```

          public Task SetAndModeAsync([QixName("qAndMode")] bool andMode)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Boolean | andMode | Specifies if the AND mode applies to the field.<br>Set this parameter to true to enter the AND mode. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IField.SetAndModeAsync(Boolean)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IField.SetAndModeAsync.htm#Qlik_Engine_IField_SetAndModeAsync_System_Boolean_)

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Field.SetAndModeAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Field.SetAndModeAsync.htm)

## SetAndModeAsync(AsyncHandle, Boolean)

Sets a field in the AND mode.

### Declaration

```

          public Task SetAndModeAsync(AsyncHandle asyncHandle, [QixName("qAndMode")] bool andMode)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Boolean | andMode | Specifies if the AND mode applies to the field.<br>Set this parameter to true to enter the AND mode. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IField.SetAndModeAsync(AsyncHandle, Boolean)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IField.SetAndModeAsync.htm#Qlik_Engine_IField_SetAndModeAsync_Qlik_Engine_AsyncHandle_System_Boolean_)