Freigeben über


FlavoredProject.QueryStatusCommand Method

Gets the status of the specified commands.

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

Syntax

'Declaration
Protected Overridable Function QueryStatusCommand ( _
    itemid As UInteger, _
    ByRef pguidCmdGroup As Guid, _
    cCmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer
protected virtual int QueryStatusCommand(
    uint itemid,
    ref Guid pguidCmdGroup,
    uint cCmds,
    OLECMD[] prgCmds,
    IntPtr pCmdText
)
protected:
virtual int QueryStatusCommand(
    unsigned int itemid, 
    Guid% pguidCmdGroup, 
    unsigned int cCmds, 
    array<OLECMD>^ prgCmds, 
    IntPtr pCmdText
)
abstract QueryStatusCommand : 
        itemid:uint32 * 
        pguidCmdGroup:Guid byref * 
        cCmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int  
override QueryStatusCommand : 
        itemid:uint32 * 
        pguidCmdGroup:Guid byref * 
        cCmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int
protected function QueryStatusCommand(
    itemid : uint, 
    pguidCmdGroup : Guid, 
    cCmds : uint, 
    prgCmds : OLECMD[], 
    pCmdText : IntPtr
) : int

Parameters

  • itemid
    Type: UInt32

    The ID of the item being queried.

  • pguidCmdGroup
    Type: Guid%

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

  • cCmds
    Type: UInt32

    The number of commands in the prgCmds array.

  • pCmdText
    Type: IntPtr

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

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace