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
'Declaration
Protected Overridable Function QueryCommandStatus ( _
ByRef guidCmdGroup As Guid, _
cmdId As UInteger _
) As Integer
protected virtual int QueryCommandStatus(
ref Guid guidCmdGroup,
uint cmdId
)
protected:
virtual int QueryCommandStatus(
Guid% guidCmdGroup,
unsigned int cmdId
)
abstract QueryCommandStatus :
guidCmdGroup:Guid byref *
cmdId:uint32 -> int
override QueryCommandStatus :
guidCmdGroup:Guid byref *
cmdId:uint32 -> int
protected function QueryCommandStatus(
guidCmdGroup : Guid,
cmdId : uint
) : int
Parameters
guidCmdGroup
Type: Guid%The GUID of the command group to which the command belongs.
cmdId
Type: UInt32The ID of the command.
Return Value
Type: 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.