SimpleEditorView.QueryCommandStatus Method
Gets the status of the specified command.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
‘선언
Protected Overridable Function QueryCommandStatus ( _
ByRef guidCmdGroup As Guid, _
cmdId As UInteger _
) As Integer
protected virtual int QueryCommandStatus(
ref Guid guidCmdGroup,
uint cmdId
)
Parameters
- guidCmdGroup
Type: System.Guid%
The GUID of the command group to which the command belongs.
- cmdId
Type: System.UInt32
The ID of the command.
Return Value
Type: System.Int32
By default this finds the menu commands and returns their status, otherwise returns OLECMDERR_E_NOTSUPPORTED.When overridden by derived classes to provide custom command status, it should return OLECMDF_SUPPORTED or OLECMDF_ENABLED.
.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.