HierarchyNode.QueryStatusOnNode Method

Handles command status on a node.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Protected Overridable Function QueryStatusOnNode ( _
    guidCmdGroup As Guid, _
    cmd As UInteger, _
    pCmdText As IntPtr, _
    ByRef result As QueryStatusResult _
) As Integer
'使用
Dim guidCmdGroup As Guid
Dim cmd As UInteger
Dim pCmdText As IntPtr
Dim result As QueryStatusResult
Dim returnValue As Integer

returnValue = Me.QueryStatusOnNode(guidCmdGroup, _
    cmd, pCmdText, result)
protected virtual int QueryStatusOnNode(
    Guid guidCmdGroup,
    uint cmd,
    IntPtr pCmdText,
    ref QueryStatusResult result
)
protected:
virtual int QueryStatusOnNode(
    Guid guidCmdGroup, 
    unsigned int cmd, 
    IntPtr pCmdText, 
    QueryStatusResult% result
)
protected function QueryStatusOnNode(
    guidCmdGroup : Guid, 
    cmd : uint, 
    pCmdText : IntPtr, 
    result : QueryStatusResult
) : int

Parameters

  • guidCmdGroup
    Type: System.Guid

    The GUID of the command group of the command.

  • pCmdText
    Type: System.IntPtr

    A pointer to a structure to return name and/or status information.

Return Value

Type: System.Int32

If the command is supported, returns S_OK; if it is not supported, returns OLECMDERR_E_NOTSUPPORTED().

Remarks

This method should be overridden by derived nodes. If a command cannot be handled, then the base should be called.

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

Microsoft.VisualStudio.Package Namespace