Post(SendOrPostCallback, Object, DispatcherPriority) Method
Posts an action that will be invoked on the dispatcher thread.
Definition
Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
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
- SendOrPostCallback
- The method.
- Object
- The argument of method to call.
- DispatcherPriority (Optional)
- The priority with which to invoke the method.