SimpleEditorView.QueryStatus Method

Gets the status of the specified commands.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Overridable Function QueryStatus ( _
    ByRef guidCmdGroup As Guid, _
    cmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer
'使用
Dim instance As SimpleEditorView
Dim guidCmdGroup As Guid
Dim cmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer

returnValue = instance.QueryStatus(guidCmdGroup, _
    cmds, prgCmds, pCmdText)
public virtual int QueryStatus(
    ref Guid guidCmdGroup,
    uint cmds,
    OLECMD[] prgCmds,
    IntPtr pCmdText
)
public:
virtual int QueryStatus(
    Guid% guidCmdGroup, 
    unsigned int cmds, 
    array<OLECMD>^ prgCmds, 
    IntPtr pCmdText
)
public function QueryStatus(
    guidCmdGroup : Guid, 
    cmds : uint, 
    prgCmds : OLECMD[], 
    pCmdText : IntPtr
) : int

Parameters

  • guidCmdGroup
    Type: System.Guid%

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

  • prgCmds
    Type: []

    An array of command IDs to query.

  • pCmdText
    Type: System.IntPtr

    Pointer to a OLECMDTXT structure for command text.

Return Value

Type: System.Int32

S_OK if all commands are enabled, or an error code.

Implements

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

Permissions

See Also

Reference

SimpleEditorView Class

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace