Skip to main content
Version: 4.1

ICommand

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Defines a command that can be used for data binding.

public interface ICommand

Methods

Instance member CanExecute(args)

Defines a method that determines whether the command can execute in its current state.

ParameterTypeDescription
argsCommandArgsA CommandArgs that contains data that can be used by the command.

Returns: Boolean. true if this command can be executed; otherwise, false.

Instance member Execute(args)

Defines a method to be called when the command is invoked.

ParameterTypeDescription
argsCommandArgsA CommandArgs that contains data that can be used by the command.

Instance member RaiseCanExecuteChanged()

Fires the CanExecuteChanged event.

Events

Instance member CanExecuteChanged

EventHandler Fired when changes occur that affect whether or not the command should execute.

Implemented By

NameDescription
CommandImplements the ICommand interface wrapping execute and canExecute actions.
Command<T>Implements the ICommand interface wrapping execute and canExecute actions.