# IncludeOnly Method

## Overloads

| [IncludeOnly<T>(T, T\[\])](https://help.qlik.com/en-US/qlikview-developer/September2025/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataObjects.EnumSupport.IncludeOnly.htm#PIX_QMSAPI_DataObjects_EnumSupport_IncludeOnly__1___0___0___) |  |  |
| --- | --- | --- |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataObjects.EnumSupport.IncludeOnly.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataObjects.EnumSupport.IncludeOnly.htm)

## IncludeOnly&lt;T&gt;(T, T[])

### Declaration

```

          public static T IncludeOnly<T>(T sourceEnum, params T[] enumValuesToInclude)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| T | sourceEnum |  |
| T[] | enumValuesToInclude |  |

### Returns

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

### Type Parameters

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