Cocktail Help Reference
OnComplete(EntityRefetchOperation,Action<IEnumerable>,Action<Exception>) Method
See Also  Send Feedback
Cocktail.Compat Assembly > Cocktail Namespace > OperationFns Class > OnComplete Method : OnComplete(EntityRefetchOperation,Action<IEnumerable>,Action<Exception>) Method



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

Glossary Item Box

Extension method to process the result of a refetch operation.

Syntax

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

Parameters

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

Return Value

Returns the EntityRefetchOperation 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

© 2013 All Rights Reserved.