CommandHandlerHelper.UpdateCommand Method (CommandHandler.Command, ICommand, Object, CommandState)

Update a CommandHandler command

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

Syntax

'Declaration
Public Shared Sub UpdateCommand ( _
    command As CommandHandler.Command, _
    relatedCommand As ICommand, _
    canExecuteParameter As Object, _
    defaultState As CommandState _
)
public static void UpdateCommand(
    CommandHandler.Command command,
    ICommand relatedCommand,
    Object canExecuteParameter,
    CommandState defaultState
)
public:
static void UpdateCommand(
    CommandHandler::Command^ command, 
    ICommand^ relatedCommand, 
    Object^ canExecuteParameter, 
    CommandState defaultState
)
static member UpdateCommand : 
        command:CommandHandler.Command * 
        relatedCommand:ICommand * 
        canExecuteParameter:Object * 
        defaultState:CommandState -> unit
public static function UpdateCommand(
    command : CommandHandler.Command, 
    relatedCommand : ICommand, 
    canExecuteParameter : Object, 
    defaultState : CommandState
)

Parameters

  • canExecuteParameter
    Type: System.Object

    optional parameter to pass to ICommand.CanExecute

  • defaultState
    Type: CommandState

    default state to use if ICommand.CanExecute returns false

.NET Framework Security

See Also

Reference

CommandHandlerHelper Class

UpdateCommand Overload

Microsoft.VisualStudio.TeamFoundation Namespace