Click or drag to resize

Item.ExecCommand Method

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:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public Object ExecCommand(
	Guid commandGroup,
	int commandId,
	Object input = null,
	OLECMDEXECOPT options = OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT,
	IBindCtx bindContext = null,
	bool throwOnError = true
)

Parameters

commandGroup
Type: System.Guid
The command group.
commandId
Type: System.Int32
The command identifier.
input (Optional)
Type: System.Object
An optional input argument. Depends on the command group and identifier.
options (Optional)
Type: callback.ShellBoost.Core.WindowsShell.OLECMDEXECOPT
The options.
bindContext (Optional)
Type: System.Runtime.InteropServices.ComTypes.IBindCtx
The bind context.
throwOnError (Optional)
Type: System.Boolean
true to throw error; otherwise false.

Return Value

Type: Object
An output value. Depends on the command group and identifier. Can be null.
See Also