Condividi tramite


SimpleEditorView.QueryStatus Method

Gets the status of the specified commands.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function QueryStatus ( _
    ByRef guidCmdGroup As Guid, _
    cmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer
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
)
abstract QueryStatus : 
        guidCmdGroup:Guid byref * 
        cmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int  
override QueryStatus : 
        guidCmdGroup:Guid byref * 
        cmds:uint32 * 
        prgCmds:OLECMD[] * 
        pCmdText:IntPtr -> int
public function QueryStatus(
    guidCmdGroup : Guid, 
    cmds : uint, 
    prgCmds : OLECMD[], 
    pCmdText : IntPtr
) : int

Parameters

  • guidCmdGroup
    Type: Guid%

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

  • cmds
    Type: UInt32

    The number of commands to query.

  • pCmdText
    Type: IntPtr

    Pointer to a OLECMDTXT structure for command text.

Return Value

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

Implements

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

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace