DependentFileNode.QueryStatusOnNode Method

Gets the status of different commands for the folder node.

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

Syntax

'宣言
Protected Overrides 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 override int QueryStatusOnNode(
    Guid guidCmdGroup,
    uint cmd,
    IntPtr pCmdText,
    ref QueryStatusResult result
)
protected:
virtual int QueryStatusOnNode(
    Guid guidCmdGroup, 
    unsigned int cmd, 
    IntPtr pCmdText, 
    QueryStatusResult% result
) override
protected override function QueryStatusOnNode(
    guidCmdGroup : Guid, 
    cmd : uint, 
    pCmdText : IntPtr, 
    result : QueryStatusResult
) : int

Parameters

  • guidCmdGroup
    Type: System.Guid

    The GUID of the command group enumeration in which to look for the command.

  • pCmdText
    Type: System.IntPtr

    Pointer to a OLECMDTEXT structure in which to return the name and/or status information of the command. Can be a null reference (Nothing in Visual Basic) to indicate that the caller does not require this information

Return Value

Type: System.Int32

Returns S_OK if the command is supported, or OLECMDERR_E_NOTSUPPORTED() if the command is not supported.

Remarks

This override disables certain commands for dependent file nodes.

Permissions

See Also

Reference

DependentFileNode Class

DependentFileNode Members

Microsoft.VisualStudio.Package Namespace