Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
command
Type: Microsoft.VisualStudio.TeamFoundation.CommandHandler.Commandcommand
relatedCommand
Type: System.Windows.Input.ICommandrelated ICommand to provide CanExecute status
canExecuteParameter
Type: System.Objectoptional parameter to pass to ICommand.CanExecute
defaultState
Type: CommandStatedefault state to use if ICommand.CanExecute returns false
.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.