FlavoredProject.IVsUIHierarchy.QueryStatusCommand Method
Gets the status of the specified commands.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Private Function QueryStatusCommand ( _
itemid As UInteger, _
ByRef pguidCmdGroup As Guid, _
cCmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer Implements IVsUIHierarchy.QueryStatusCommand
int IVsUIHierarchy.QueryStatusCommand(
uint itemid,
ref Guid pguidCmdGroup,
uint cCmds,
OLECMD[] prgCmds,
IntPtr pCmdText
)
private:
virtual int QueryStatusCommand(
unsigned int itemid,
Guid% pguidCmdGroup,
unsigned int cCmds,
array<OLECMD>^ prgCmds,
IntPtr pCmdText
) sealed = IVsUIHierarchy::QueryStatusCommand
private abstract QueryStatusCommand :
itemid:uint32 *
pguidCmdGroup:Guid byref *
cCmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
private override QueryStatusCommand :
itemid:uint32 *
pguidCmdGroup:Guid byref *
cCmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
JScript does not support explicit interface implementations.
Parameters
itemid
Type: System.UInt32The ID of the item being queried.
pguidCmdGroup
Type: System.Guid%The GUID of the command group to which the commands belong.
cCmds
Type: System.UInt32The number of commands in the prgCmds array.
prgCmds
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]An array of command OLECMD structures with information on the commands.
pCmdText
Type: System.IntPtrA pointer to an OLECMDTEXT structure containing name and/or status information on the command.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsUIHierarchy.QueryStatusCommand(UInt32, Guid%, UInt32, array<OLECMD[], IntPtr)
Remarks
This method calls the QueryStatusCommand method, which calls the QueryStatusCommand method on the inner project.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.