Share via


ExpansionProvider.HandleQueryStatus Method

Determines if the specified command is handled by the ExpansionProvider class.

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

Syntax

'Declaration
Public Overridable Function HandleQueryStatus ( _
    ByRef guidCmdGroup As Guid, _
    nCmdId As UInteger, _
    <OutAttribute> ByRef hr As Integer _
) As Boolean
public virtual bool HandleQueryStatus(
    ref Guid guidCmdGroup,
    uint nCmdId,
    out int hr
)
public:
virtual bool HandleQueryStatus(
    Guid% guidCmdGroup, 
    unsigned int nCmdId, 
    [OutAttribute] int% hr
)
abstract HandleQueryStatus : 
        guidCmdGroup:Guid byref * 
        nCmdId:uint32 * 
        hr:int byref -> bool  
override HandleQueryStatus : 
        guidCmdGroup:Guid byref * 
        nCmdId:uint32 * 
        hr:int byref -> bool
public function HandleQueryStatus(
    guidCmdGroup : Guid, 
    nCmdId : uint, 
    hr : int
) : boolean

Parameters

  • guidCmdGroup
    Type: Guid%

    [in] The GUID of the command group.

  • nCmdId
    Type: UInt32

    [in] The specific ID of the command from the command group. This identifies the command to execute.

  • hr
    Type: Int32%

    [out] Returns a combination of values from the OLECMD enumeration indicating support for the specified command.

Return Value

Type: Boolean
If the command is supported by the ExpansionProvider class, returns true; otherwise, returns false.

Remarks

The base method always returns false, indicating it does not support any menu-based commands.

.NET Framework Security

See Also

Reference

ExpansionProvider Class

Microsoft.VisualStudio.Package Namespace