Click or drag to resize

Item.QueryCommandStatus Method

Queries the item for the status of one or more commands generated by user interface events. Depends on the item's IOleCommandTarget optional implementation.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public Tuple<OLECMDF, OLECMDTEXTF, string> QueryCommandStatus(
	Guid commandGroup,
	int commandId,
	OLECMDTEXTF textType = OLECMDTEXTF.OLECMDTEXTF_NONE,
	IBindCtx bindContext = null,
	bool throwOnError = true
)

Parameters

commandGroup
Type: System.Guid
The command group.
commandId
Type: System.Int32
The command identifier.
textType (Optional)
Type: callback.ShellBoost.Core.WindowsShell.OLECMDTEXTF
The optional text type.
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: Tuple<OLECMDF, OLECMDTEXTF, String>
A tuple containing requested status or null if it cannot be determined.
See Also