WindowPane::IOleCommandTarget::QueryStatus Method (Guid, UInt32, array<OLECMD>^, IntPtr)

 

Gets the status of the commands.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

private:
virtual int QueryStatus(
	Guid% guidGroup,
	unsigned int nCmdId,
	array<OLECMD>^ oleCmd,
	IntPtr oleText
) sealed = IOleCommandTarget::QueryStatus

Parameters

guidGroup
Type: System::Guid

Unique identifier of the command group. All the commands that are passed in the prgCmds array must belong to the group that is specified by guidCmdGroup.

nCmdId
Type: System::UInt32

The number of commands in the prgCmds array.

oleCmd
Type: array<Microsoft.VisualStudio.OLE.Interop::OLECMD>^

A caller-allocated array of OLECMD structures that indicate the commands for which the caller requires status information. This method fills the cmdf member of each structure with values taken from the OLECMDF enumeration.

oleText
Type: System::IntPtr

Pointer to an OLECMDTEXTF structure to return a name and/or status information of a single command. Can be null to indicate that the caller does not require this information.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Visual Studio calls this method to get the status of your commands. You do not need to override this method.

Return to top
Show: