Udostępnij za pośrednictwem


ICommandProvider.QueryStatus Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the status of the context menu command by using the specified context menu, the specified command, and a list of items that were selected at the time the context menu was displayed.

Namespace:  Microsoft.VisualStudio.TestTools.Vsip
Assembly:  Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)

Syntax

'Declaration
Function QueryStatus ( _
    contextMenuId As CommandID, _
    commandId As CommandID, _
    items As IList _
) As CommandStatus
CommandStatus QueryStatus(
    CommandID contextMenuId,
    CommandID commandId,
    IList items
)
CommandStatus^ QueryStatus(
    CommandID^ contextMenuId, 
    CommandID^ commandId, 
    IList^ items
)
abstract QueryStatus : 
        contextMenuId:CommandID * 
        commandId:CommandID * 
        items:IList -> CommandStatus
function QueryStatus(
    contextMenuId : CommandID, 
    commandId : CommandID, 
    items : IList
) : CommandStatus

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.Vsip.CommandStatus
A command status object.

.NET Framework Security

See Also

Reference

ICommandProvider Interface

Microsoft.VisualStudio.TestTools.Vsip Namespace

CommandID

CommandStatus