ICommandBindingInvokeCommand Method

Invokes the underlying ICommand for all of the added targets using the specified source, event name, event arguments and parameters.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.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.
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