SafeDispatcher.Invoke Method

Definition

Overloads

Invoke(DispatcherPriority, TimeSpan, Delegate, Object, Object[], Boolean, Boolean)
Invoke(DispatcherPriority, TimeSpan, Delegate, Object, Boolean, Boolean)
Invoke(DispatcherPriority, Delegate, Object, Object[], Boolean, Boolean)
Invoke(Delegate, TimeSpan, DispatcherPriority, Object[], Boolean, Boolean)
Invoke(Action, DispatcherPriority, CancellationToken, TimeSpan, Boolean, Boolean)
Invoke(DispatcherPriority, TimeSpan, Delegate, Boolean, Boolean)
Invoke(DispatcherPriority, Delegate, Object, Boolean, Boolean)
Invoke(Delegate, TimeSpan, Object[], Boolean, Boolean)
Invoke(Action, DispatcherPriority, CancellationToken, Boolean, Boolean)
Invoke(DispatcherPriority, Delegate, Boolean, Boolean)
Invoke(Delegate, Object[], Boolean, Boolean)
Invoke(Action, DispatcherPriority, Boolean, Boolean)
Invoke(Action, Boolean, Boolean)
Invoke(Delegate, DispatcherPriority, Object[], Boolean, Boolean)
Invoke<TResult>(Func<TResult>, DispatcherPriority, Boolean, Boolean)
Invoke<TResult>(Func<TResult>, Boolean, Boolean)
Invoke<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, Boolean, Boolean)
Invoke<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, TimeSpan, Boolean, Boolean)

Invoke(DispatcherPriority, TimeSpan, Delegate, Object, Object[], Boolean, Boolean)

public object Invoke (System.Windows.Threading.DispatcherPriority dispatcherPriority, TimeSpan timeout, Delegate callback, object arg, object[] args, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : System.Windows.Threading.DispatcherPriority * TimeSpan * Delegate * obj * obj[] * bool * bool -> obj
Public Function Invoke (dispatcherPriority As DispatcherPriority, timeout As TimeSpan, callback As Delegate, arg As Object, args As Object(), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

dispatcherPriority
DispatcherPriority
timeout
TimeSpan
callback
Delegate
arg
Object
args
Object[]
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(DispatcherPriority, TimeSpan, Delegate, Object, Boolean, Boolean)

public object Invoke (System.Windows.Threading.DispatcherPriority dispatcherPriority, TimeSpan timeout, Delegate callback, object arg, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : System.Windows.Threading.DispatcherPriority * TimeSpan * Delegate * obj * bool * bool -> obj
Public Function Invoke (dispatcherPriority As DispatcherPriority, timeout As TimeSpan, callback As Delegate, arg As Object, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

dispatcherPriority
DispatcherPriority
timeout
TimeSpan
callback
Delegate
arg
Object
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(DispatcherPriority, Delegate, Object, Object[], Boolean, Boolean)

public object Invoke (System.Windows.Threading.DispatcherPriority dispatcherPriority, Delegate callback, object arg, object[] args, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : System.Windows.Threading.DispatcherPriority * Delegate * obj * obj[] * bool * bool -> obj
Public Function Invoke (dispatcherPriority As DispatcherPriority, callback As Delegate, arg As Object, args As Object(), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

dispatcherPriority
DispatcherPriority
callback
Delegate
arg
Object
args
Object[]
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Delegate, TimeSpan, DispatcherPriority, Object[], Boolean, Boolean)

public object Invoke (Delegate callback, TimeSpan timeout, System.Windows.Threading.DispatcherPriority dispatcherPriority, object[] args, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Delegate * TimeSpan * System.Windows.Threading.DispatcherPriority * obj[] * bool * bool -> obj
Public Function Invoke (callback As Delegate, timeout As TimeSpan, dispatcherPriority As DispatcherPriority, args As Object(), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Delegate
timeout
TimeSpan
dispatcherPriority
DispatcherPriority
args
Object[]
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Action, DispatcherPriority, CancellationToken, TimeSpan, Boolean, Boolean)

public object Invoke (Action callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, System.Threading.CancellationToken cancellationToken, TimeSpan timeout, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Action * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken * TimeSpan * bool * bool -> obj
Public Function Invoke (callback As Action, dispatcherPriority As DispatcherPriority, cancellationToken As CancellationToken, timeout As TimeSpan, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Action
dispatcherPriority
DispatcherPriority
cancellationToken
CancellationToken
timeout
TimeSpan
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(DispatcherPriority, TimeSpan, Delegate, Boolean, Boolean)

public object Invoke (System.Windows.Threading.DispatcherPriority dispatcherPriority, TimeSpan timeout, Delegate callback, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : System.Windows.Threading.DispatcherPriority * TimeSpan * Delegate * bool * bool -> obj
Public Function Invoke (dispatcherPriority As DispatcherPriority, timeout As TimeSpan, callback As Delegate, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

dispatcherPriority
DispatcherPriority
timeout
TimeSpan
callback
Delegate
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(DispatcherPriority, Delegate, Object, Boolean, Boolean)

public object Invoke (System.Windows.Threading.DispatcherPriority dispatcherPriority, Delegate callback, object arg, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : System.Windows.Threading.DispatcherPriority * Delegate * obj * bool * bool -> obj
Public Function Invoke (dispatcherPriority As DispatcherPriority, callback As Delegate, arg As Object, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

dispatcherPriority
DispatcherPriority
callback
Delegate
arg
Object
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Delegate, TimeSpan, Object[], Boolean, Boolean)

public object Invoke (Delegate callback, TimeSpan timeout, object[] args, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Delegate * TimeSpan * obj[] * bool * bool -> obj
Public Function Invoke (callback As Delegate, timeout As TimeSpan, args As Object(), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Delegate
timeout
TimeSpan
args
Object[]
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Action, DispatcherPriority, CancellationToken, Boolean, Boolean)

public object Invoke (Action callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, System.Threading.CancellationToken cancellationToken, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Action * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken * bool * bool -> obj
Public Function Invoke (callback As Action, dispatcherPriority As DispatcherPriority, cancellationToken As CancellationToken, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Action
dispatcherPriority
DispatcherPriority
cancellationToken
CancellationToken
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(DispatcherPriority, Delegate, Boolean, Boolean)

public object Invoke (System.Windows.Threading.DispatcherPriority dispatcherPriority, Delegate callback, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : System.Windows.Threading.DispatcherPriority * Delegate * bool * bool -> obj
Public Function Invoke (dispatcherPriority As DispatcherPriority, callback As Delegate, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

dispatcherPriority
DispatcherPriority
callback
Delegate
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Delegate, Object[], Boolean, Boolean)

public object Invoke (Delegate callback, object[] args, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Delegate * obj[] * bool * bool -> obj
Public Function Invoke (callback As Delegate, args As Object(), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Delegate
args
Object[]
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Action, DispatcherPriority, Boolean, Boolean)

public object Invoke (Action callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Action * System.Windows.Threading.DispatcherPriority * bool * bool -> obj
Public Function Invoke (callback As Action, dispatcherPriority As DispatcherPriority, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Action
dispatcherPriority
DispatcherPriority
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Action, Boolean, Boolean)

public object Invoke (Action callback, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Action * bool * bool -> obj
Public Function Invoke (callback As Action, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Action
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke(Delegate, DispatcherPriority, Object[], Boolean, Boolean)

public object Invoke (Delegate callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, object[] args, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Delegate * System.Windows.Threading.DispatcherPriority * obj[] * bool * bool -> obj
Public Function Invoke (callback As Delegate, dispatcherPriority As DispatcherPriority, args As Object(), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As Object

Parameters

callback
Delegate
dispatcherPriority
DispatcherPriority
args
Object[]
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

Applies to

Invoke<TResult>(Func<TResult>, DispatcherPriority, Boolean, Boolean)

public TResult Invoke<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Func<'Result> * System.Windows.Threading.DispatcherPriority * bool * bool -> 'Result
Public Function Invoke(Of TResult) (callback As Func(Of TResult), dispatcherPriority As DispatcherPriority, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As TResult

Type Parameters

TResult

Parameters

callback
Func<TResult>
dispatcherPriority
DispatcherPriority
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

TResult

Applies to

Invoke<TResult>(Func<TResult>, Boolean, Boolean)

public TResult Invoke<TResult> (Func<TResult> callback, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Func<'Result> * bool * bool -> 'Result
Public Function Invoke(Of TResult) (callback As Func(Of TResult), Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As TResult

Type Parameters

TResult

Parameters

callback
Func<TResult>
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

TResult

Applies to

Invoke<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, Boolean, Boolean)

public TResult Invoke<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, System.Threading.CancellationToken cancellationToken, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Func<'Result> * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken * bool * bool -> 'Result
Public Function Invoke(Of TResult) (callback As Func(Of TResult), dispatcherPriority As DispatcherPriority, cancellationToken As CancellationToken, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As TResult

Type Parameters

TResult

Parameters

callback
Func<TResult>
dispatcherPriority
DispatcherPriority
cancellationToken
CancellationToken
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

TResult

Applies to

Invoke<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, TimeSpan, Boolean, Boolean)

public TResult Invoke<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, System.Threading.CancellationToken cancellationToken, TimeSpan timeout, bool runOnMainUiThread = true, bool safeMode = true);
member this.Invoke : Func<'Result> * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken * TimeSpan * bool * bool -> 'Result
Public Function Invoke(Of TResult) (callback As Func(Of TResult), dispatcherPriority As DispatcherPriority, cancellationToken As CancellationToken, timeout As TimeSpan, Optional runOnMainUiThread As Boolean = true, Optional safeMode As Boolean = true) As TResult

Type Parameters

TResult

Parameters

callback
Func<TResult>
dispatcherPriority
DispatcherPriority
cancellationToken
CancellationToken
timeout
TimeSpan
runOnMainUiThread
Boolean
safeMode
Boolean

Returns

TResult

Applies to