# GetParentAsync Method

## Overloads

| [GetParentAsync()](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.GetParentAsync.htm#Qlik_Engine_GenericObject_GetParentAsync) |  | Returns the type of the object and the corresponding handle to the parent object in the hiearchy. |
| --- | --- | --- |
| [GetParentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.GetParentAsync.htm#Qlik_Engine_GenericObject_GetParentAsync_Qlik_Engine_AsyncHandle_) |  | Returns the type of the object and the corresponding handle to the parent object in the hiearchy. |
| [GetParentAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.GetParentAsync.htm#Qlik_Engine_GenericObject_GetParentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) |  | Returns the type of the object and the corresponding handle to the parent object in the hiearchy. |

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

## GetParentAsync()

Returns the type of the object and the corresponding handle to the parent object in the hiearchy.

### Declaration

```

          public Task<GenericObject> GetParentAsync()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[GenericObject](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.htm)&gt; |  |

### Implements

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

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

## GetParentAsync(AsyncHandle)

Returns the type of the object and the corresponding handle to the parent object in the hiearchy.

### Declaration

```

          public Task<GenericObject> GetParentAsync(AsyncHandle asyncHandle)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[GenericObject](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.htm)&gt; |  |

### Implements

[IGenericObject.GetParentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.GetParentAsync.htm#Qlik_Engine_IGenericObject_GetParentAsync_Qlik_Engine_AsyncHandle_)

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

## GetParentAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;)

Returns the type of the object and the corresponding handle to the parent object in the hiearchy.

### Declaration

```
public Task<T> GetParentAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

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

### Implements

[IGenericObject.GetParentAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.GetParentAsync.htm#Qlik_Engine_IGenericObject_GetParentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__)