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

 

Queries the object for the status of one or more commands.

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

private:
virtual int QueryStatus(
	Guid% pguidCmdGroup,
	unsigned int cCmds,
	array<OLECMD>^ prgCmds,
	IntPtr pCmdText
) sealed = IOleCommandTarget::QueryStatus

Parameters

pguidCmdGroup
Type: System::Guid

The GUID of the command group to which the commands belong.

cCmds
Type: System::UInt32

The number of commands in the command array.

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

An array of OLECMD structures that contain information about the commands.

pCmdText
Type: System::IntPtr

Pointer to an OLECMDTEXT structure in which to return name and/or status information of a single command. Can be null.

Return Value

Type: System::Int32

If the method succeeded, S_OK, otherwise an error code.

This method calls QueryStatus on the menu service. For information on the COM interface, see IOleCommandTarget::QueryStatus.

Return to top
Show: