Click or drag to resize

ItemQueryCommandStatus 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:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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: SystemGuid
The command group.
commandId
Type: SystemInt32
The command identifier.
textType (Optional)
Type: ShellBoost.Core.WindowsShellOLECMDTEXTF
The optional text type.
bindContext (Optional)
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The bind context.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: TupleOLECMDF, OLECMDTEXTF, String
A tuple containing requested status or null if it cannot be determined.
See Also