# IndexOfDefPath Method

## Overloads

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

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

## IndexOfDefPath(String)

Converts an existing path to its equivalent index value

### Declaration

```

          int IndexOfDefPath(string defPath)
    
  
```

### Parameters

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

### Returns

| Type | Description |
| --- | --- |
| System.Int32 | index to HyperCube/ListObject definition |

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

## IndexOfDefPath(String[])

Converts existing paths to their equivalent index values

### Declaration

```

          int[] IndexOfDefPath(string[] defPaths)
    
  
```

### Parameters

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

### Returns

| Type | Description |
| --- | --- |
| System.Int32[] | array with indexes to HyperCube/ListObject definitions |