ICommandBindingInvokeCommand Method

Invokes the underlying ICommand for every added target using the specified source, event name, event arguments and parameters.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
void InvokeCommand(
	Object source,
	string eventName,
	EventArgs eventArgs,
	Object? parameter = null
)

Parameters

source  Object
The source. It is not checked whether the source is actually added to this ICommandBinding. Can be a Type for static events. It will be used also as the sender in the underlying event handler.
eventName  String
Name of the event. It is not checked whether this is en existing event.
eventArgs  EventArgs
The EventArgs instance containing the event data.
parameter  Object  (Optional)
The parameter value to be passed to the invoked command. A possible previous WithParameter call is ignored when calling this method. This parameter is optional.
Default value: .

See Also