Compartilhar via


SimpleEditorView.QueryStatus Method

Gets the status of the specified commands.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.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

'Declaração
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
)

Parameters

  • guidCmdGroup
    Type: System.Guid%
    The GUID of the command group to which the commands belong.
  • 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, array<OLECMD[], IntPtr)

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace