Partager via


IVsIntellisenseHost.QueryStatus(Guid, UInt32, OLECMD[], OLECMDTEXT[]) Method

Definition

Queries this object for the status of one or more commands generated by user interface events.

public:
 int QueryStatus(Guid % pguidCmdGroup, System::UInt32 cCmds, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMD> ^ prgCmds, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMDTEXT> ^ pCmdText);
public int QueryStatus (ref Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds, Microsoft.VisualStudio.OLE.Interop.OLECMDTEXT[] pCmdText);
abstract member QueryStatus : Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * Microsoft.VisualStudio.OLE.Interop.OLECMDTEXT[] -> int
Public Function QueryStatus (ByRef pguidCmdGroup As Guid, cCmds As UInteger, prgCmds As OLECMD(), pCmdText As OLECMDTEXT()) As Integer

Parameters

pguidCmdGroup
Guid

The GUID of the command group.

cCmds
UInt32

The number of commands in prgCmds.

prgCmds
OLECMD[]

An array of structures that indicate the commands for which the caller needs status information.

pCmdText
OLECMDTEXT[]

A structure in which to return name and/or status information of a single command. This parameter can be null to indicate that the caller does not need this information.

Returns

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

Applies to