Visual Basic (Declaration) | |
---|---|
Public Shared Function FromCallbackAction(Of T)( _ ByVal action As Action(Of Action(Of T)) _ ) As Task(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim action As Action(Of Action(Of T)) Dim value As Task(Of T) value = TaskFns.FromCallbackAction(Of T)(action) |
C# | |
---|---|
public static Task<T> FromCallbackAction<T>( Action<Action<T>> action ) |
C++/CLI | |
---|---|
public: static Task<T^>^ FromCallbackActiongeneric<typename T> ( Action<Action<T^>^>^ action ) |
Parameters
- action
- The callback action.
Type Parameters
- T
- The type of the callback result.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family