The ExecuteCommandByID method executes the command on the SQLNamespaceObject object identified by the CommandID parameter.
object.ExecuteCommandByID(
CommandID,
[hWnd],
[modality])
object
Expression that evaluates to an object in the Applies To list
CommandID
Command ID
hWnd
Parent window handle
modality
Modality of the window
HRESULT ExecuteCommandByID(
SQLNSCommandID CommandID,
long hwnd,
SQLNSModality modality);
The ExecuteCommandByID method optionally provides a parent window (by default, the parent window handle specified by the Initialize method) and suggests preference in modality of the user interface. ExecuteCommandByID is the preferred method for executing commands, because it is independent of the system language of the computer where the application runs.