CommandHandler Class

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

  Name Description
Public method CommandHandler

Top

Methods

  Name Description
Public method AddSecondaryCommandHandler Add a command handler to route an unsupported command.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Exec
Public method ExecCommand
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method HandleException Pass the exception to a handler if available or fall back to default handling.
Public method 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
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnQueryStatus Called when command status is being queried.
Public method QueryStatus
Public method QueryStatusCommand
Public method Register(Guid, VSConstants.VSStd97CmdID, CommandHandler.HierarchyStatusCallback, CommandHandler.HierarchyExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation) Register a VsUIHierarchy command.
Public method Register(Guid, VSConstants.VSStd97CmdID, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation) Register a VS command.
Public method Register(Guid, Int32, CommandHandler.HierarchyStatusCallback, CommandHandler.HierarchyExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation) Register a VsUIHierarchy command.
Public method Register(Guid, Int32, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation) Register a command.
Public method Register(Guid, Int32, CommandHandler.StatusCallback, CommandHandler.ExecWithInOutCallback, CommandHandler.Command.StatesDuringLongRunningOperation) Register a command.
Public method Register(Guid, Int32, Int32, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation) Register a range of commands.
Public method RemoveSecondaryCommandHandler Remove a previously added secondary command handler.
Public method 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