# IndexOfDefPathAsync Method

## Overloads

| [IndexOfDefPathAsync(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.IndexOfDefPathAsync.htm#Qlik_Engine_IGenericObject_IndexOfDefPathAsync_System_String_) |  | Converts an existing path to its equivalent index value asynchronously |
| --- | --- | --- |
| [IndexOfDefPathAsync(String\[\])](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.IndexOfDefPathAsync.htm#Qlik_Engine_IGenericObject_IndexOfDefPathAsync_System_String___) |  | Converts existing paths to their equivalent index values asynchronously |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.IndexOfDefPathAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.IndexOfDefPathAsync.htm)

## IndexOfDefPathAsync(String)

Converts an existing path to its equivalent index value asynchronously

### Declaration

```

          Task<int> IndexOfDefPathAsync(string defPath)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | defPath | path to HyperCube/ListObject definition |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Int32&gt; | Task that resolves the index to HyperCube/ListObject definition |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.IndexOfDefPathAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.IndexOfDefPathAsync.htm)

## IndexOfDefPathAsync(String[])

Converts existing paths to their equivalent index values asynchronously

### Declaration

```

          Task<int[]> IndexOfDefPathAsync(string[] defPaths)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String[] | defPaths | array of paths to HyperCube/ListObject definitions |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Int32[]&gt; | Task that resolves an array with indexes to HyperCube/ListObject definitions |