The AddCommandSorted Method syntax has these parts:
Part
Description
object
An expression evaluating to an object of type McDataSource.
eCommand
Required. A mcDataUICommands enumeration, as described in settings. McDataNodes command to be added.
sDisplayName
Required. A String value. McDataNodes Localized command name (multiple instance of a command must have unique names).
eContentType
Required. A mcDataSourceContent enumeration, as described in settings. Type of content for which the eCommand will be applied.
sContent
Required. A String value. Content identifier for which the eCommand will be applied.
bContentDefaultRequest
Optional. A Boolean value.
bUIDefaultRequest
Optional. A Boolean value.
bUIHide
Optional. A Boolean value.
sMacro
Optional. A String value.
sLocalizedDisplayName
Optional. A String value.
lSortOrder
Optional. A Long value. Used to set the order of execution when multiple servers implement the same command (eCommand, sDisplayName, eContentType, sContent, lVersion). Lower values are execute prior to higher values.
lVersion
Optional. A Long value. Specifies a version of the implementation. This feature is not used yet.
sLocalizedMenuParents
Optional. A String value. Specifies the localized captions for parent menu items to be displayed by a UI. Multiple captions may be delimited by a \ character.
lUIDisplayNameSortOrder
Optional. A Long value. Used to set a menu order of display when multiple Displayname implementation exist for the the same command (eCommand, eContentType, sContent). menu items with lower values are to be displayed above higher values.
Settings
The settings for eCommand are:
Constant
Value
Description
mcdatnc_NotACommand
0
Not Initialize - invalid state.
mcdatnc_AddClipboard
1
Current
mcdatnc_StoreToNode ' Save to a Database Node
mcdatnc_AddDataObject
2
Drop Special New - UI will Not show value but a value is required to enable.
mcdatnc_AddFile
3
Open Common Dialog prompt using DataSource's file extensions.
mcdatnc_AddFolder
4
Open (Browse) Folder shell dialog and recursive Add File with no prompting.