The Execute method executes the command associated with the SQLNamespaceCommand object related to the user interface component associated with the command.
SQLNamespaceCommand Object |
object.Execute(
[hWnd],
[modality])
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
hWnd | Window handle |
modality | Modality of the window |
The Execute method optionally provides a parent window. By default, the window handle specified in the Initialize method will be used. The modality parameter suggests preference in modality of the user interface. SQL Namespace, due to the modality of a specific user interface component, can overrule the requested modality. If there is no parent window handle specified during the Initialize call and the modality is SQLNamespace_PreferModal, the value of this parameter cannot be NULL.
HRESULT Execute(
long hwnd ,
SQLNSModality modality);