CommandHandler.Register Method (Guid, VSConstants.VSStd97CmdID, CommandHandler.StatusCallback, CommandHandler.ExecCallback, CommandHandler.Command.StatesDuringLongRunningOperation)
Register a VS 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.StatusCallback, _
execCallback As CommandHandler.ExecCallback, _
state As CommandHandler.Command.StatesDuringLongRunningOperation _
)
public void Register(
Guid commandGroup,
VSConstants.VSStd97CmdID commandId,
CommandHandler.StatusCallback statusCallback,
CommandHandler.ExecCallback execCallback,
CommandHandler.Command.StatesDuringLongRunningOperation state
)
public:
void Register(
Guid commandGroup,
VSConstants::VSStd97CmdID commandId,
CommandHandler::StatusCallback^ statusCallback,
CommandHandler::ExecCallback^ execCallback,
CommandHandler::Command::StatesDuringLongRunningOperation state
)
member Register :
commandGroup:Guid *
commandId:VSConstants.VSStd97CmdID *
statusCallback:CommandHandler.StatusCallback *
execCallback:CommandHandler.ExecCallback *
state:CommandHandler.Command.StatesDuringLongRunningOperation -> unit
public function Register(
commandGroup : Guid,
commandId : VSConstants.VSStd97CmdID,
statusCallback : CommandHandler.StatusCallback,
execCallback : CommandHandler.ExecCallback,
state : CommandHandler.Command.StatesDuringLongRunningOperation
)
Parameters
commandGroup
Type: System.Guidgroup
commandId
Type: Microsoft.VisualStudio.VSConstants.VSStd97CmdIDVS command ID
statusCallback
Type: Microsoft.VisualStudio.TeamFoundation.CommandHandler.StatusCallbackquery status callback
execCallback
Type: Microsoft.VisualStudio.TeamFoundation.CommandHandler.ExecCallbackexec 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.