次の方法で共有


ExpansionProvider.HandleQueryStatus Method

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

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

Syntax

'宣言
Public Overridable Function HandleQueryStatus ( _
    ByRef guidCmdGroup As Guid, _
    nCmdId As UInteger, _
    <OutAttribute> ByRef hr As Integer _
) As Boolean
'使用
Dim instance As ExpansionProvider
Dim guidCmdGroup As Guid
Dim nCmdId As UInteger
Dim hr As Integer
Dim returnValue As Boolean

returnValue = instance.HandleQueryStatus(guidCmdGroup, _
    nCmdId, hr)
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: System.Guid%
    [in] The GUID of the command group.
  • nCmdId
    Type: System.UInt32
    [in] The specific ID of the command from the command group. This identifies the command to execute.
  • hr
    Type: System.Int32%
    [out] Returns a combination of values from the OLECMD enumeration indicating support for the specified command.

Return Value

Type: System.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

ExpansionProvider Members

Microsoft.VisualStudio.Package Namespace