다음을 통해 공유


FlavoredProject.IVsUIHierarchy.QueryStatusCommand Method

Definition

Gets the status of the specified commands.

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

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.

Implements

Remarks

This method calls the QueryStatusCommand method, which calls the QueryStatusCommand method on the inner project.

Applies to