Condividi tramite


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

'Dichiarazione
Protected Overridable Function QueryCommandStatus ( _
    ByRef guidCmdGroup As Guid, _
    cmdId As UInteger _
) As Integer
'Utilizzo
Dim guidCmdGroup As Guid
Dim cmdId As UInteger
Dim returnValue As Integer

returnValue = Me.QueryCommandStatus(guidCmdGroup, _
    cmdId)
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: System.Guid%
    The GUID of the command group to which the command belongs.

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

See Also

Reference

SimpleEditorView Class

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace