NullSyncInvokerInvokeT(FuncT) Method |
Invokes a delegate that returns a value on the script engine's thread.
Namespace: Microsoft.ClearScript.Windows.CoreAssembly: ClearScript.Windows.Core (in ClearScript.Windows.Core.dll) Version: 7.4.5
Syntax public T Invoke<T>(
Func<T> func
)
Public Function Invoke(Of T) (
func As Func(Of T)
) As T
public:
generic<typename T>
virtual T Invoke(
Func<T>^ func
) sealed
abstract Invoke :
func : Func<'T> -> 'T
override Invoke :
func : Func<'T> -> 'T
Parameters
- func FuncT
- The delegate to invoke on the script engine's thread.
Type Parameters
- T
- The delegate's return value type.
Return Value
TThe delegate's return value.
Implements
ISyncInvokerInvokeT(FuncT)Remarks
The
NullSyncInvoker implementation of this method invokes
func without synchronization.
See Also