ICommandExecute Method
Executes the command invoked by the specified source for the specified target.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
void Execute(
ICommandSource source,
ICommandState state,
Object? target,
Object? parameter
)
Sub Execute (
source As ICommandSource,
state As ICommandState,
target As Object,
parameter As Object
)
void Execute(
ICommandSource^ source,
ICommandState^ state,
Object^ target,
Object^ parameter
)
abstract Execute :
source : ICommandSource *
state : ICommandState *
target : Object *
parameter : Object -> unit
Parameters
- source ICommandSource
- An ICommandSource object containing information about the source of the command.
- state ICommandState
- An ICommandState instance containing the state of the current command binding. The state can be changed during the execution.
- target Object
- The target of the execution. Can be if the binding has no targets.
If the command binding has multiple targets the Execute method will be invoked multiple times.
- parameter Object
- The parameter of the command. Can be if the binding has no parameter.
Evaluated once per triggering the command. Even if the binding has multiple targets the Execute method
is invoked with the same parameter value for each target.