# ListObjectDef Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

Defines the properties of a list object.

For more information about the definition of a list object, see `Generic object`.

## Inheritance

* System.Object
  * [AbstractStructure](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AbstractStructure.htm)
    * ListObjectDef

      [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.htm)
      #### Derived Classes
      * [ListboxListObjectDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.Visualizations.ListboxListObjectDef.htm)
      * [MapListObjectDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.Visualizations.MapComponents.MapListObjectDef.htm)

## Syntax

```
[ValueClass]
public class ListObjectDef : AbstractStructure, IDisposable, IListObjectDef, IAbstractStructure
```

## Constructors

| Name | Description |
| --- | --- |
| [ListObjectDef()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.-ctor.htm#Qlik_Engine_ListObjectDef__ctor) | Creates an instance of the ListObjectDef class |

## Properties

| Name | Description |
| --- | --- |
| [AutoSortByState](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.AutoSortByState.htm#Qlik_Engine_ListObjectDef_AutoSortByState) | Defines the sorting by state.<br><br>JSON property name: qAutoSortByState |
| [Def](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.Def.htm#Qlik_Engine_ListObjectDef_Def) | Refers to a dimension stored in the list object.<br><br>JSON property name: qDef |
| [DirectQuerySimplifiedView](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.DirectQuerySimplifiedView.htm#Qlik_Engine_ListObjectDef_DirectQuerySimplifiedView) | If set to true, reduces the set of states returned.<br><br>Supported for Direct Query mode only.<br><br>Default is false.<br><br>JSON property name: qDirectQuerySimplifiedView |
| [Expressions](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.Expressions.htm#Qlik_Engine_ListObjectDef_Expressions) | Lists the expressions in the list object.<br><br>This parameter is optional.<br><br>JSON property name: qExpressions |
| [FrequencyMode](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.FrequencyMode.htm#Qlik_Engine_ListObjectDef_FrequencyMode) | Defines the frequency mode. The frequency mode is used to calculate the frequency of a value in a list object.<br><br>Default is `NX_FREQUENCY_NONE` .<br><br>This parameter is optional.<br><br>JSON property name: qFrequencyMode |
| [InitialDataFetch](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.InitialDataFetch.htm#Qlik_Engine_ListObjectDef_InitialDataFetch) | Fetches an initial data set.<br><br>JSON property name: qInitialDataFetch |
| [LibraryId](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.LibraryId.htm#Qlik_Engine_ListObjectDef_LibraryId) | Refers to a dimension stored in the library.<br><br>JSON property name: qLibraryId |
| [ShowAlternatives](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.ShowAlternatives.htm#Qlik_Engine_ListObjectDef_ShowAlternatives) | If set to true, alternative values are allowed in `qData` .<br><br>If set to false, no alternative values are displayed in `qData` . Values are excluded instead.<br><br>The default value is false.<br><br>Note that on the contrary, the `qStateCounts` parameter counts the excluded values as alternative values.<br><br>This parameter is optional.<br><br>JSON property name: qShowAlternatives |
| [StateName](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ListObjectDef.StateName.htm#Qlik_Engine_ListObjectDef_StateName) | Name of the alternate state.<br><br>Default is current selections `$` .<br><br>JSON property name: qStateName |