ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.Windows.Core
ISyncInvoker Interface
ISyncInvoker Methods
Invoke Method
Invoke(Action) Method
Invoke<T>(Func<T>) Method

# ISyncInvokerInvoke T(Func T) Method

Invokes a delegate that returns a value on the script engine's thread.
Namespace: Microsoft.ClearScript.Windows.Core
Assembly: ClearScript.Windows.Core (in ClearScript.Windows.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    T Invoke<T>(
    	Func<T> func
    )

    Function Invoke(Of T) (
    	func As Func(Of T)
    ) As T

    generic<typename T>
    T Invoke(
    	Func<T>^ func
    )

    abstract Invoke :
            func : Func<'T> -> 'T

#### Parameters

func Func T
  The delegate to invoke on the script engine's thread.

#### Type Parameters

T
  The delegate's return value type.

#### Return Value

T
The delegate's return value.
See Also

#### Reference

ISyncInvoker Interface
Invoke Overload
Microsoft.ClearScript.Windows.Core Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft