Something like below:
auto comp = ref new WinRTComponent();
auto action = comp->MethodAsync();
action->Progress = ref new AsyncActionProgressHandler<String^> ([this] (IAsyncActionWithProgress<String^>^ act, String^ progress)
{
// do something
});
task<void>(action).then([](){});
Raman Sharma | Program Manager, Visual C++ |
@rasharm_msft
(if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)