T
Cocktail Help Reference
OnComplete<T>(PageChangedOperation<T>,Action<Page<T>>,Action<Exception>) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > OperationFns Class > OnComplete Method : OnComplete<T>(PageChangedOperation<T>,Action<Page<T>>,Action<Exception>) Method



source
The PageChangedOperation returned from an asynchronous paging operation."/>
onSuccess
A callback to be called if the paging was successful.
onFail
A callback to be called if the paging failed.

Glossary Item Box

Extension method to process the result of a paging operation.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function OnComplete(Of T)( _
   ByVal source As IdeaBlade.EntityModel.PageChangedOperation(Of T), _
   ByVal onSuccess As Action(Of Page(Of T)), _
   ByVal onFail As Action(Of Exception) _
) As IdeaBlade.EntityModel.PageChangedOperation(Of T)
Visual Basic (Usage)Copy Code
Dim source As IdeaBlade.EntityModel.PageChangedOperation(Of T)
Dim onSuccess As Action(Of Page(Of T))
Dim onFail As Action(Of Exception)
Dim value As IdeaBlade.EntityModel.PageChangedOperation(Of T)
 
value = OperationFns.OnComplete(Of T)(source, onSuccess, onFail)
C# 
[ExtensionAttribute()]
public static IdeaBlade.EntityModel.PageChangedOperation<T> OnComplete<T>( 
   IdeaBlade.EntityModel.PageChangedOperation<T> source,
   Action<Page<T>> onSuccess,
   Action<Exception> onFail
)
C++/CLI 
[ExtensionAttribute()]
public:
static IdeaBlade.EntityModel.PageChangedOperation<T^>^ OnCompletegeneric<typename T>
( 
   IdeaBlade.EntityModel.PageChangedOperation<T^>^ source,
   Action<Page<T^>^>^ onSuccess,
   Action<Exception^>^ onFail
) 

Parameters

source
The PageChangedOperation returned from an asynchronous paging operation."/>
onSuccess
A callback to be called if the paging was successful.
onFail
A callback to be called if the paging failed.

Type Parameters

T

Return Value

Returns the PageChangedOperation passed to the method's source parameter.

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

© 2012 All Rights Reserved.