> ## 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 メソッド

このメソッドは、ハンドルを **void**\* として返し、オブジェクトをハンドルから切り離します。このメソッドを呼び出した後は、開発者の責任でリソースを解放する必要があります。

## 構文

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

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

```vb Visual Basic .NET theme={null}
Function Detach() As IntPtr
```

## パラメーター

**Result**

\[out, retval] リソースのハンドルを [**HANDLE**\*](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md) として返します。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**ハンドル**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/handle.md)
