# GetCurrentSelection Method

## Overloads

| [GetCurrentSelection(IApp)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetCurrentSelection.htm#Qlik_Sense_Client_AppExtensions_GetCurrentSelection_Qlik_Engine_IApp_) |  | This method creates and returns a session object that must be disposed to avoid session object leakage. |
| --- | --- | --- |

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

## GetCurrentSelection(IApp)

This method creates and returns a session object that must be disposed to avoid session object leakage.

### Declaration

```

          public static ICurrentSelection GetCurrentSelection(this IApp theApp)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IApp](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.htm) | theApp |  |

### Returns

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