DispatcherPost(SendOrPostCallback, Object, DispatcherPriority) Method
Posts an action that will be invoked on the dispatcher thread.
Namespace: Avalonia.ThreadingAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void Post(
SendOrPostCallback action,
Object? arg,
DispatcherPriority priority = default
)
Public Sub Post (
action As SendOrPostCallback,
arg As Object,
Optional priority As DispatcherPriority = Nothing
)
member Post :
action : SendOrPostCallback *
arg : Object *
?priority : DispatcherPriority
(* Defaults:
let _priority = defaultArg priority new DispatcherPriority()
*)
-> unit
Parameters
- action SendOrPostCallback
- The method.
- arg Object
- The argument of method to call.
- priority DispatcherPriority (Optional)
- The priority with which to invoke the method.