Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
contextMenuId
Type: System.ComponentModel.Design.CommandIDThe CommandID for a context menu.
commandId
Type: System.ComponentModel.Design.CommandIDThe CommandID for a command.
items
Type: System.Collections.IListA list of items that were selected at the time the context menu was displayed.
Return Value
Type: Microsoft.VisualStudio.TestTools.Vsip.CommandStatus
A command status object.
.NET Framework Security
- 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.