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

# IFileWriter インターフェイスの Close メソッド

> ABBYY FineReader Engine API の IFileWriter インターフェイスの Close メソッド — ファイルのメモリへの書き込みを完了するクライアント側のメソッド。

このメソッドはクライアント側で実装されています。ファイルのメモリへの書き込みを完了します。

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

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

```cpp theme={null}
HRESULT Close();
```

### C\#

```csharp theme={null}
void Close();
```

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

```vb theme={null}
Sub Close()
```

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

\[C++ のみ] このメソッドが S\_OK 以外の値を返した場合は、クライアント側でエラーが発生したことを示します。

<div id="remarks">
  ## 注記
</div>

このメソッドのクライアント実装では、メソッド内でスローされるすべての例外を確実にキャッチして処理し、例外がメソッドの外部へ伝播しないようにする必要があります。例外がメソッドの外部へ伝播すると、予期しない結果 (プログラムの終了など) につながるおそれがあります。

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

[IFileWriter](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/ifilewriter)
