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

# ClassificationTrainingDocument オブジェクトの Open メソッド

このメソッドは、分類の学習用ドキュメントを開きます。このドキュメントを操作する (構造やパラメーターなどにアクセスする) には、まずドキュメントを開く必要があります。このメソッドに渡すパラメーターに応じて、ドキュメントを読み取り用または書き込み用に開くことができます。ドキュメントを閉じるには、[**ClassificationTrainingDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingdocument.md) オブジェクトの [**Close**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingdocument-close.md) メソッドを使用します。

## 構文

```vb Visual Basic .NET theme={null}
Sub Open(WriteAccess As Boolean)
```

```cpp C++ theme={null}
HRESULT Open(
  VARIANT_BOOL WriteAccess
);
```

## パラメーター

**WriteAccess**

\[in] この変数は、分類の学習用ドキュメントを読み取り用と書き込み用のどちらで開くかを指定します。このパラメーターの値が FALSE の場合、ドキュメントは読み取り用で開かれます。ドキュメントを編集する場合は、このパラメーターを TRUE に設定してください。このパラメーターはオプションです。デフォルト値は TRUE です。

## 戻り値

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

## 関連項目

[**ClassificationTrainingDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingdocument.md)
