Share via


OleCommandTargetHelper.QueryStatus Method

Handles the sensitivity, latch, check/uncheck of our buttons.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Function QueryStatus ( _
    ByRef pguidCmdGroup As Guid, _
    cCmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer
'Usage
Dim instance As OleCommandTargetHelper
Dim pguidCmdGroup As Guid
Dim cCmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer

returnValue = instance.QueryStatus(pguidCmdGroup, _
    cCmds, prgCmds, pCmdText)
public int QueryStatus(
    ref Guid pguidCmdGroup,
    uint cCmds,
    OLECMD[] prgCmds,
    IntPtr pCmdText
)
public:
virtual int QueryStatus(
    Guid% pguidCmdGroup, 
    unsigned int cCmds, 
    array<OLECMD>^ prgCmds, 
    IntPtr pCmdText
) sealed
public final function QueryStatus(
    pguidCmdGroup : Guid, 
    cCmds : uint, 
    prgCmds : OLECMD[], 
    pCmdText : IntPtr
) : int
abstract QueryStatus : 
        pguidCmdGroup:Guid * 
        cCmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int 
override QueryStatus : 
        pguidCmdGroup:Guid * 
        cCmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int 

Parameters

  • pguidCmdGroup
    Type: System.Guid%
    The command group Guid
  • pCmdText
    Type: System.IntPtr
    The OLECMDTEXT object representing the string shown in the button

Return Value

Type: System.Int32

Implements

IOleCommandTarget.QueryStatus(Guid%, UInt32, array<OLECMD[], IntPtr)

.NET Framework Security

See Also

Reference

OleCommandTargetHelper Class

OleCommandTargetHelper Members

Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace