CommandHandler Class
In this article
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TeamFoundation.CommandHandler
Namespace: Microsoft.VisualStudio.TeamFoundation
Assembly: Microsoft.VisualStudio.TeamFoundation (in Microsoft.VisualStudio.TeamFoundation.dll)
Syntax
'Declaration
Public Class CommandHandler _
Implements IOleCommandTarget
public class CommandHandler : IOleCommandTarget
public ref class CommandHandler : IOleCommandTarget
type CommandHandler =
class
interface IOleCommandTarget
end
public class CommandHandler implements IOleCommandTarget
The CommandHandler type exposes the following members.
Constructors
Top
Methods
AddSecondaryCommandHandler
Add a command handler to route an unsupported command.
Equals
Determines whether the specified object is equal to the current object. (Inherited from Object .)
Exec
ExecCommand
Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object .)
GetHashCode
Serves as a hash function for a particular type. (Inherited from Object .)
GetType
Gets the Type of the current instance. (Inherited from Object .)
HandleException
Pass the exception to a handler if available or fall back to default handling.
IsQueryParameterList
Identifies Exec call, that should specify list of allowed parameters instead of performing the actual operation. https://blogs.msdn.com/dr._ex/archive/2005/03/16/396877.aspx
MemberwiseClone
Creates a shallow copy of the current Object . (Inherited from Object .)
OnQueryStatus
Called when command status is being queried.
QueryStatus
QueryStatusCommand
Register(Guid, VSConstants.VSStd97CmdID, CommandHandler.HierarchyStatusCallback, CommandHandler.HierarchyExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a VsUIHierarchy command.
Register(Guid, VSConstants.VSStd97CmdID, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a VS command.
Register(Guid, Int32, CommandHandler.HierarchyStatusCallback, CommandHandler.HierarchyExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a VsUIHierarchy command.
Register(Guid, Int32, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a command.
Register(Guid, Int32, CommandHandler.StatusCallback, CommandHandler.ExecWithInOutCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a command.
Register(Guid, Int32, Int32, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a range of commands.
RemoveSecondaryCommandHandler
Remove a previously added secondary command handler.
ToString
Returns a string that represents the current object. (Inherited from Object .)
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.TeamFoundation Namespace