The CommandID property returns the SQLNSCommandID value of a SQLNamespaceCommand object. SQLNSCommandID represents the command that invokes a user interface component on a SQLNamespaceObject object.
object.CommandID
object
Expression that evaluates to an object in the Applies To list
Read-only
HRESULT GetCommandID(SQLNSCommandID *pRetVal) = 0;
Not all SQLNSCommandID values are valid commands on a particular SQLNamespaceObject object. To verify that a command is valid, you must verify that the command is part of the Commands collection on the SQLNamespace object.