다음을 통해 공유


FlavoredProject.QueryStatusCommand Method

Definition

Gets the status of the specified commands.

protected:
 virtual int QueryStatusCommand(System::UInt32 itemid, Guid % pguidCmdGroup, System::UInt32 cCmds, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMD> ^ prgCmds, IntPtr pCmdText);
protected virtual int QueryStatusCommand (uint itemid, ref Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds, IntPtr pCmdText);
abstract member QueryStatusCommand : uint32 * Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
override this.QueryStatusCommand : uint32 * Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
Protected Overridable Function QueryStatusCommand (itemid As UInteger, ByRef pguidCmdGroup As Guid, cCmds As UInteger, prgCmds As OLECMD(), pCmdText As IntPtr) As Integer

Parameters

itemid
UInt32

The ID of the item being queried.

pguidCmdGroup
Guid

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

cCmds
UInt32

The number of commands in the prgCmds array.

prgCmds
OLECMD[]

An array of command OLECMD structures with information on the commands.

pCmdText
IntPtr

nativeint

A pointer to an OLECMDTEXT structure containing name and/or status information on the command.

Returns

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

Remarks

This method calls the QueryStatusCommand method on the inner project.

Applies to