次の方法で共有


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.

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

Microsoft.VisualStudio.Package Namespace