Open sandboxFocus

Method CanExecute

CanExecute(T)

Determines whether the command can be executed with the specified parameter. Returns false if the command is already running and concurrent execution is not supported, or if the CanExecute delegate returns false.

Declaration
public bool CanExecute(T parameter)
Parameters
Type Name Description
T parameter

The command parameter.

Returns
Type Description
bool

true if the command can be executed; otherwise, false.