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
commandGroup
Type: System.Guidgroup
commandId
Type: Microsoft.VisualStudio.VSConstants.VSStd97CmdIDVS command ID
statusCallback
Type: Microsoft.VisualStudio.TeamFoundation.CommandHandler.HierarchyStatusCallbackquery status callback
execCallback
Type: Microsoft.VisualStudio.TeamFoundation.CommandHandler.HierarchyExecCallbackexec callback
state
Type: Microsoft.VisualStudio.TeamFoundation.CommandHandler.Command.StatesDuringLongRunningOperationcommand state during long-running operation
.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.