ICommand
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Defines a command that can be used for data binding.
- C#
- VB.NET
public interface ICommand
Public Interface ICommand
Methods
CanExecute(args)
Defines a method that determines whether the command can execute in its current state.
| Parameter | Type | Description |
|---|---|---|
| args | CommandArgs | A CommandArgs that contains data that can be used by the command. |
Returns: Boolean. true if this command can be executed; otherwise, false.
Execute(args)
Defines a method to be called when the command is invoked.
| Parameter | Type | Description |
|---|---|---|
| args | CommandArgs | A CommandArgs that contains data that can be used by the command. |
RaiseCanExecuteChanged()
Fires the CanExecuteChanged event.
Events
CanExecuteChanged
EventHandler Fired when changes occur that affect whether or not the command should execute.
Implemented By
| Name | Description |
|---|---|
| Command | Implements the ICommand interface wrapping execute and canExecute actions. |
| Command<T> | Implements the ICommand interface wrapping execute and canExecute actions. |