Open sandboxFocus

Method Execute

Execute(object?)

Executes the command. This overload is obsolete because this command type does not accept parameters.

Declaration
[Obsolete("This command does not accept any arguments.")]
public void Execute(object? parameter)
Parameters
Type Name Description
object parameter

This parameter is ignored.

Execute()

Executes the command by invoking the execute delegate.

Declaration
public void Execute()
Exceptions
Type Condition
InvalidOperationException

Thrown when the command cannot be executed (i.e., CanExecute returns false).