ExpansionProvider.HandleQueryStatus Method
Determines if the specified command is handled by the ExpansionProvider class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
‘선언
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
)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.