# FilterFor Method

## Overloads

| [FilterFor<T>(T, Nullable<ApiVersion>)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm#PIX_ApiFiltering_ApiFilter_FilterFor__1___0_System_Nullable_PIX_ApiVersion__) |  |  |
| --- | --- | --- |
| [FilterFor<T>(List<T>, Nullable<ApiVersion>)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm#PIX_ApiFiltering_ApiFilter_FilterFor__1_System_Collections_Generic_List___0__System_Nullable_PIX_ApiVersion__) |  |  |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm)

## FilterFor&lt;T&gt;(T, Nullable&lt;ApiVersion&gt;)

### Declaration

```

          public static T FilterFor<T>(this T obj, ApiVersion? wantedVersion)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| T | obj |  |
| System.Nullable&lt;[ApiVersion](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.ApiVersion.htm)&gt; | wantedVersion |  |

### Returns

| Type | Description |
| --- | --- |
| T |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm)

## FilterFor&lt;T&gt;(List&lt;T&gt;, Nullable&lt;ApiVersion&gt;)

### Declaration

```

          public static List<T> FilterFor<T>(this List<T> list, ApiVersion? wantedVersion)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Collections.Generic.List&lt;T&gt; | list |  |
| System.Nullable&lt;[ApiVersion](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.ApiVersion.htm)&gt; | wantedVersion |  |

### Returns

| Type | Description |
| --- | --- |
| System.Collections.Generic.List&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |