ReferenceNode.QueryStatusOnNode Method
Gets the status of the supplied command for this 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.GuidThe GUID of the command group.
cmd
Type: System.UInt32The ID of the command.
pCmdText
Type: System.IntPtrPointer to an OLECMDTEXTF structure to return a name and/or status information of a single command. Can be a null reference (Nothing in Visual Basic) to indicate that the caller does not need this information.
result
Type: Microsoft.VisualStudio.Package.QueryStatusResult%The result of the command.
Return Value
Type: System.Int32
If the command group is not supported, returns OLECMDERR_E_UNKNOWNGROUP(). If the command is not supported, returns OLECMDERR_E_NOTSUPPORTED(). If the command is supported, returns S_OK.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.