M

IExternalDataManagerServer.OnCommand

Description:
Handles user command.
Remarks:
This is the main execution entry point when the user triggers a command through the dialog UI (context menu, or content tool). dataIds may be empty for commands that do not require selection (e.g. Add). Throwing an exception rolls back the surrounding transaction group and shows an error dialog.
void OnCommand(
	Document document,
	ExternalDataManagerCommandId commandId,
	IList<ExternalDataManagerDataItemId> dataIds
)