# GetSelectionObserver Method

## Overloads

| [GetSelectionObserver(IApp, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.GetSelectionObserver.htm#Qlik_Sense_Client_SelectionObserver_GetSelectionObserver_Qlik_Engine_IApp_System_String_) |  | Create a SelectionObserver instance. |
| --- | --- | --- |

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

## GetSelectionObserver(IApp, String)

Create a SelectionObserver instance.

### Declaration

```

          public static ISelectionObserver GetSelectionObserver(IApp app, string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IApp](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.htm) | app | The app to observe. |
| System.String | stateName | The name of the selection state to observe. |

### Returns

| Type | Description |
| --- | --- |
| [ISelectionObserver](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.htm) | An ISelectionObserver instance. |