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

# VendorRecords オブジェクトの Commit メソッド

このメソッドは、前回のコミット以降にベンダーレコードに対して行ったすべての変更をコミットします。

このメソッドは、請求書の [**DocumentDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinition.md) が [**CheckOut**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions-checkout.md) メソッドによって編集モードに切り替えられている場合にのみ使用できます。このメソッドを 1 回以上呼び出した後は、[**CheckIn**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions-checkin.md) メソッドを使用してコミット済みのすべての変更を Document Definition に保存するか、[**UndoCheckout**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions-undocheckout.md) メソッドを使用してコミット済みのすべての変更を破棄します。

## 構文

```vb Visual Basic .NET theme={null}
Function Commit(Callback As ProcessingEvents) As RejectedDatasetRecords
```

```cpp C++ theme={null}
HRESULT Commit(
  IProcessingEvents*        Callback,
  IRejectedDatasetRecords** RejectedRecords
)
```

## パラメーター

**Callback**

\[in] [**IProcessingEvents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/iprocessingevents.md) インターフェイスを実装するオブジェクトを参照します。このオブジェクトは、ベンダーデータベースへのデータ書き込み中の進行状況や発生したエラーをユーザーに通知するとともに、操作を中止する手段を提供します。このパラメーターには NULL を渡すこともできます。

**RejectedRecords**

\[out, retval] 出力される [**RejectedDataSetRecords**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rejecteddatasetrecords.md) オブジェクトのインターフェースポインターを受け取る **IRejectedDataSetRecords**\* ポインター変数へのポインターです。このオブジェクトには、データベースへの書き込みに失敗したすべてのベンダーレコードが、失敗の理由を示すエラーメッセージとともに格納されます。却下された各レコードは [**RejectedDataSetRecord**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rejecteddatasetrecord.md) オブジェクトで表され、[**VendorRecord**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/vendorrecord.md) 型にキャストできます。

## 戻り値

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

## 関連項目

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