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

# Commands オブジェクトの UnregisterUserCommand メソッド

> Windows 上の ABBYY FineReader Engine Visual Components における Commands オブジェクトの UnregisterUserCommand メソッド — このメソッドは、指定したユーザー定義コマンドの登録を解除します。

このメソッドは、指定したユーザー定義コマンドの登録を解除します。

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

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

```cpp theme={null}
HRESULT UnregisterUserCommand( MenuItemEnum CommandId );
```

### C\#

```csharp theme={null}
void UnregisterUserCommand( MenuItemEnum CommandId );
```

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

```vb theme={null}
Sub UnregisterUserCommand(CommandId As MenuItemEnum)
```

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

CommandId

\[in] ユーザーコマンドに割り当てられた ID を、[MenuItemEnum](/ja/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) 定数として指定します。指定可能な値は MI\_CustomCommand1, ... , MI\_CustomCommand10 です。

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

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

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

[Commands](/ja/fine-reader/engine/visual-components-reference/supplementary-objects/commands)

[RegisterUserCommand](/ja/fine-reader/engine/visual-components-reference/supplementary-objects/commands/registerusercommand-method)

[MenuItemEnum](/ja/fine-reader/engine/visual-components-reference/enumerations/menuitemenum)
