Share via


ThreadHelper.Invoke<TResult> Method (Func<TResult>)

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Function Invoke(Of TResult) ( _
    method As Func(Of TResult) _
) As TResult
public TResult Invoke<TResult>(
    Func<TResult> method
)
public:
generic<typename TResult>
TResult Invoke(
    Func<TResult>^ method
)
member Invoke : 
        method:Func<'TResult> -> 'TResult 
JScript does not support generic types or methods.

Type Parameters

  • TResult

Parameters

  • method
    Type: Func<TResult>

Return Value

Type: TResult

.NET Framework Security

See Also

Reference

ThreadHelper Class

Invoke Overload

Microsoft.VisualStudio.Shell Namespace