Executes the specified command.
Depends on the item's IOleCommandTarget optional implementation.
The list of supported types for Input is limited to integral types (String, Int32, int64, Boolean, Single, Double, Guid, DateTime,Decimal) and IDictionary types.
Values for an IDictionary passed as Input can also contain arrays of aforementioned types.
Namespace:
ShellBoost.Core.WindowsShell
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public Object ExecCommand(
Guid commandGroup,
int commandId,
Object input = null,
OLECMDEXECOPT options = OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT,
IBindCtx bindContext = null,
bool throwOnError = true
)
Parameters
- commandGroup
- Type: SystemGuid
The command group. - commandId
- Type: SystemInt32
The command identifier. - input (Optional)
- Type: SystemObject
An optional input argument. Depends on the command group and identifier. - options (Optional)
- Type: ShellBoost.Core.WindowsShellOLECMDEXECOPT
The options. - bindContext (Optional)
- Type: System.Runtime.InteropServices.ComTypesIBindCtx
The bind context. - throwOnError (Optional)
- Type: SystemBoolean
true to throw error; otherwise false.
Return Value
Type:
ObjectAn output value. Depends on the command group and identifier. Can be null.
See Also