> ## 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.

# ILicensingConnectionRecoveryCallback インターフェイスの OnDisconnect メソッド

> ABBYY FineReader Engine API の ILicensingConnectionRecoveryCallback インターフェイスの OnDisconnect メソッド — このメソッドはクライアント側で実装されます。

<Note>
  このメソッドは、Linux および Windows 版の FRE で実装されています。
</Note>

このメソッドはクライアント側で実装します。ABBYY FineReader Engine は、ライセンスサーバーとの接続が切断されると、このメソッドを呼び出します。一般的な実装では、接続の再確立を数回試み、再接続に成功した場合は、[Engine](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface) オブジェクトの [RestartLicensing](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/restartlicensing-method) メソッドを使用してライセンス処理を再開できます。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT OnDisconnect( VARIANT_BOOL* Result );
```

### C\#

```csharp theme={null}
bool OnDisconnect();
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Function OnDisconnect() As Boolean
```

<div id="parameters">
  ## パラメーター
</div>

Result

\[out, retval] 接続が再確立され、プログラムの実行を継続できる場合、このパラメーターは TRUE を返さなければなりません。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[ILicensingConnectionRecoveryCallback](/ja/fine-reader/engine/api-reference/license-related-objects/ilicensingconnectionrecoverycallback)

[IEngine::SetLicensingConnectionRecoveryCallback](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/setlicensingconnectionrecoverycallback-method)
