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

# IsUserCommandRegistered Method of the Commands Object

> IsUserCommandRegistered method of the Commands Object in ABBYY FineReader Engine Visual Components on Windows — This method allows you to find out whether the specified user-defined command is registered.

This method allows you to find out whether the specified user-defined command is registered. You can use this method to check availability of an enumeration constant before [registering a custom command](/fine-reader/engine/visual-components-reference/supplementary-objects/commands/registerusercommand-method).

## Syntax

### C++

```cpp theme={null}
HRESULT IsUserCommandRegistered(
  MenuItemEnum  CommandId,
  VARIANT_BOOL* Result
);
```

### C\#

```csharp theme={null}
bool IsUserCommandRegistered( MenuItemEnum CommandId );
```

### Visual Basic .NET

```vb theme={null}
Function IsUserCommandRegistered(CommandId As MenuItemEnum) As Boolean
```

## Parameters

CommandId

\[in] Specifies a [MenuItemEnum](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) constant which corresponds to the user command.

Result

\[out, retval] Specifies whether the command is registered. If the value is TRUE, such command has already been registered, and you cannot use this constant for another command.

## Return values

This method has no specific return values. It returns [the standard return values of the ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

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