Compartilhar via


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: UInt32

    The 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

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace