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
- cCmds
Type: System.UInt32
The number of commands
- prgCmds
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]
The array of commands
- 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
- 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.
See Also
Reference
OleCommandTargetHelper Members
Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace