# GetFields Method

## Overloads

| [GetFields()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ExtendedCurrentSelection.GetFields.htm#Qlik_Sense_Client_ExtendedCurrentSelection_GetFields) |  | Gets all fields. This method creates AppField instances that must be disposed to avoid session object leakage. |
| --- | --- | --- |

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

## GetFields()

Gets all fields. This method creates AppField instances that must be disposed to avoid session object leakage.

### Declaration

```

          public IEnumerable<IAppField> GetFields()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Collections.Generic.IEnumerable&lt;[IAppField](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.IAppField.htm)&gt; | A System.Collections.Generic.IEnumerator&lt;T&gt; that can be used to iterate through the collection. |

### Implements

[IExtendedCurrentSelection.GetFields()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.IExtendedCurrentSelection.GetFields.htm#Qlik_Sense_Client_IExtendedCurrentSelection_GetFields)