UnregisterOLECommand Method (CommandsManager Object)

Scope: Schematic editor

Object: CommandsManager Object

Prerequisites: None

Revokes a previously registered command.

Usage

CommandsManager.UnregisterOLECommand(ByVal CommandName As String, ByVal ClientDispatch As Object) As Boolean

Arguments

CommandName

This is the unique name for the command.

ClientDispatch

Client object which gets invoked when the command is executed.

Return Values

As Boolean. True - The command was successfully unregistered. False - The command could not be unregistered.