DataPackage.IOleCommandTarget.QueryStatus Method

Queries the object for the status of one or more commands generated by user interface events.

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

Syntax

'Declaration
Private Function QueryStatus ( _
    ByRef pguidCmdGroup As Guid, _
    cCmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
int IOleCommandTarget.QueryStatus(
    ref Guid pguidCmdGroup,
    uint cCmds,
    OLECMD[] prgCmds,
    IntPtr pCmdText
)
private:
virtual int QueryStatus(
    Guid% pguidCmdGroup, 
    unsigned int cCmds, 
    array<OLECMD>^ prgCmds, 
    IntPtr pCmdText
) sealed = IOleCommandTarget::QueryStatus
private abstract QueryStatus : 
        pguidCmdGroup:Guid byref * 
        cCmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int 
private override QueryStatus : 
        pguidCmdGroup:Guid byref * 
        cCmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int 
JScript does not support explicit interface implementations.

Parameters

  • pguidCmdGroup
    Type: System.Guid%
    The unique identifier of the command group; can be NULL to specify the standard group. All commands that are passed in the prgCmds array must belong to the group specified by pguidCmdGroup.
  • cCmds
    Type: System.UInt32
    The number of commands in the prgCmds array.
  • prgCmds
    Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]
    A caller-allocated array of OLECMD structures that indicate the commands for which the caller needs status information. This method fills the cmdf member of each structure with values taken from the OLECMDF enumeration.
  • pCmdText
    Type: System.IntPtr
    A pointer to an OLECMDTEXT structure in which to return name or status information, or both, of a single command. This parameter can be NULL to indicate that the caller does not need this information.

Return Value

Type: System.Int32

Implements

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

.NET Framework Security

See Also

Reference

DataPackage Class

Microsoft.VisualStudio.Data.Schema.Package.UI Namespace