# SetSelectionState Method

## Overloads

| [SetSelectionState(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.SetSelectionState.htm#Qlik_Sense_Client_SelectionObserver_SetSelectionState_System_String_) |  | Set the state for which to observe selections. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.SetSelectionState.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.SetSelectionState.htm)

## SetSelectionState(String)

Set the state for which to observe selections.

### Declaration

```

          public void SetSelectionState(string stateName)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | stateName | The name of the selection state to observe. The value `null` implies the default state. |

### Implements

[ISelectionObserver.SetSelectionState(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.SetSelectionState.htm#Qlik_Sense_Client_ISelectionObserver_SetSelectionState_System_String_)