Share via


WindowPane.IOleCommandTarget.QueryStatus Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

‘선언
Private Function QueryStatus ( _
    ByRef guidGroup As Guid, _
    nCmdId As UInteger, _
    oleCmd As OLECMD(), _
    oleText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
‘사용 방법
Dim instance As WindowPane
Dim guidGroup As Guid
Dim nCmdId As UInteger
Dim oleCmd As OLECMD()
Dim oleText As IntPtr
Dim returnValue As Integer

returnValue = CType(instance, IOleCommandTarget).QueryStatus(guidGroup, _
    nCmdId, oleCmd, oleText)
int IOleCommandTarget.QueryStatus(
    ref Guid guidGroup,
    uint nCmdId,
    OLECMD[] oleCmd,
    IntPtr oleText
)
private:
virtual int QueryStatus(
    Guid% guidGroup, 
    unsigned int nCmdId, 
    array<OLECMD>^ oleCmd, 
    IntPtr oleText
) sealed = IOleCommandTarget::QueryStatus
private abstract QueryStatus : 
        guidGroup:Guid byref * 
        nCmdId:uint32 * 
        oleCmd:OLECMD[] * 
        oleText:IntPtr -> int 
private override QueryStatus : 
        guidGroup:Guid byref * 
        nCmdId:uint32 * 
        oleCmd:OLECMD[] * 
        oleText:IntPtr -> int 
JScript does not support explicit interface implementations.

Parameters

  • guidGroup
    Type: System.Guid%
    Unique identifier of the command group. All the commands that are passed in the prgCmds array must belong to the group that is specified by guidCmdGroup.
  • nCmdId
    Type: System.UInt32
    The number of commands in the prgCmds array.
  • oleCmd
    Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]
    A caller-allocated array of OLECMD structures that indicate the commands for which the caller requires status information. This method fills the cmdf member of each structure with values taken from the OLECMDF enumeration.
  • oleText
    Type: System.IntPtr
    Pointer to an OLECMDTEXTF structure to return a name and/or status information of a single command. Can be nulla null reference (Nothing in Visual Basic) to indicate that the caller does not require this information.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

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

Remarks

This method implements QueryStatus.

.NET Framework Security

See Also

Reference

WindowPane Class

WindowPane Members

Microsoft.VisualStudio.Shell Namespace