> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Detach Method of the Handle Object

This method returns the handle as void\* and detaches the object from it. After this method is called, the developer is responsible for releasing the resource.

## Syntax

### C++

```cpp theme={null}
HRESULT Detach( void* Result );
```

### C\#

```csharp theme={null}
IntPtr Detach();
```

### Visual Basic .NET

```vb theme={null}
Function Detach() As IntPtr
```

## Parameters

Result

\[out, retval] Returns the handle of the resource as [HANDLE\*](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties).

## Return values

This method has no specific return values. It returns the [standard return codes of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[Handle](/fine-reader/engine/api-reference/supplementary-objects-and-methods/handle)
