The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Visual Studio 2012
Adds a continuation task to this task.
template< typename _Function > auto then( const _Function& _Func ) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func, cancellation_token _CancellationToken ) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func, task_continuation_context _ContinuationContext ) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func, cancellation_token _CancellationToken, task_continuation_context _ContinuationContext ) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func ) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func, cancellation_token _CancellationToken ) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func, task_continuation_context _ContinuationContext ) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType; template< typename _Function > auto then( const _Function& _Func, cancellation_token _CancellationToken, task_continuation_context _ContinuationContext ) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType;
A continuation task (also known just as a continuation) is an asynchronous task that is invoked by another task, which is known as the antecedent, when the antecedent completes. For more information about continuations and how to use them to compose asynchronous work, see Continuation Tasks in the document Task Parallelism (Concurrency Runtime).
The overloads of then that take a lambda or functor that return Windows::Foundation::IAsyncInfo are only available to Windows Store apps.