Share via


CommandHandler.Register Method (Guid, VSConstants.VSStd97CmdID, CommandHandler.HierarchyStatusCallback, CommandHandler.HierarchyExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)

Register a VsUIHierarchy command.

Namespace:  Microsoft.VisualStudio.TeamFoundation
Assembly:  Microsoft.VisualStudio.TeamFoundation (in Microsoft.VisualStudio.TeamFoundation.dll)

Syntax

'Declaration
Public Sub Register ( _
    commandGroup As Guid, _
    commandId As VSConstants.VSStd97CmdID, _
    statusCallback As CommandHandler.HierarchyStatusCallback, _
    execCallback As CommandHandler.HierarchyExecCallback, _
    state As CommandHandler.Command.StatesDuringLongRunningOperation _
)
public void Register(
    Guid commandGroup,
    VSConstants.VSStd97CmdID commandId,
    CommandHandler.HierarchyStatusCallback statusCallback,
    CommandHandler.HierarchyExecCallback execCallback,
    CommandHandler.Command.StatesDuringLongRunningOperation state
)
public:
void Register(
    Guid commandGroup, 
    VSConstants::VSStd97CmdID commandId, 
    CommandHandler::HierarchyStatusCallback^ statusCallback, 
    CommandHandler::HierarchyExecCallback^ execCallback, 
    CommandHandler::Command::StatesDuringLongRunningOperation state
)
member Register : 
        commandGroup:Guid * 
        commandId:VSConstants.VSStd97CmdID * 
        statusCallback:CommandHandler.HierarchyStatusCallback * 
        execCallback:CommandHandler.HierarchyExecCallback * 
        state:CommandHandler.Command.StatesDuringLongRunningOperation -> unit
public function Register(
    commandGroup : Guid, 
    commandId : VSConstants.VSStd97CmdID, 
    statusCallback : CommandHandler.HierarchyStatusCallback, 
    execCallback : CommandHandler.HierarchyExecCallback, 
    state : CommandHandler.Command.StatesDuringLongRunningOperation
)

Parameters

.NET Framework Security

See Also

Reference

CommandHandler Class

Register Overload

Microsoft.VisualStudio.TeamFoundation Namespace