ICommandBindingInvokeCommand Method
Invokes the underlying
ICommand for all of the added targets using the specified source, event name, event arguments and parameters.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
void InvokeCommand(
Object source,
string eventName,
EventArgs eventArgs,
Object? parameter = null
)
Sub InvokeCommand (
source As Object,
eventName As String,
eventArgs As EventArgs,
Optional parameter As Object = Nothing
)
void InvokeCommand(
Object^ source,
String^ eventName,
EventArgs^ eventArgs,
Object^ parameter = nullptr
)
abstract InvokeCommand :
source : Object *
eventName : string *
eventArgs : EventArgs *
?parameter : Object
(* Defaults:
let _parameter = defaultArg parameter null
*)
-> unit
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: .