T
The type of the target operation.
Cocktail Help Reference
ContinueWith<T> Method
See Also  Send Feedback
Cocktail.Compat Assembly > Cocktail Namespace > OperationFns Class : ContinueWith<T> Method



operation
The target operation.
continuationAction
An action to run when the operation completes. When run, the delegate will be passed the completed operation as an argument. If the operation completed with an error, the error will be marked as handled.

Glossary Item Box

Creates a continuation that executes when the target operation completes.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function ContinueWith(Of T As OperationResult)( _
   ByVal operation As T, _
   ByVal continuationAction As Action(Of T) _
) As T
Visual Basic (Usage)Copy Code
Dim operation As T
Dim continuationAction As Action(Of T)
Dim value As T
 
value = OperationFns.ContinueWith(Of T)(operation, continuationAction)
C# 
[ExtensionAttribute()]
public static T ContinueWith<T>( 
   T operation,
   Action<T> continuationAction
)
where T: OperationResult
C++/CLI 
[ExtensionAttribute()]
public:
static T^ ContinueWithgeneric<typename T>
( 
   T^ operation,
   Action<T^>^ continuationAction
) 
where T: OperationResult

Parameters

operation
The target operation.
continuationAction
An action to run when the operation completes. When run, the delegate will be passed the completed operation as an argument. If the operation completed with an error, the error will be marked as handled.

Type Parameters

T
The type of the target operation.

Return Value

The target operation.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionThe continuationAction argument is null.

Requirements

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

See Also

© 2013 All Rights Reserved.