T
Cocktail Help Reference
LastPageAsync<T> Method
See Also  Send Feedback
Cocktail.Compat Assembly > Cocktail Namespace > Compatibility Class : LastPageAsync<T> Method



source
onSuccess
onFail

Glossary Item Box

Provides compatibility for legacy code.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function LastPageAsync(Of T)( _
   ByVal source As IPager(Of T), _
   ByVal onSuccess As Action(Of Page(Of T)), _
   ByVal onFail As Action(Of Exception) _
) As PageOperationResult(Of T)
Visual Basic (Usage)Copy Code
Dim source As IPager(Of T)
Dim onSuccess As Action(Of Page(Of T))
Dim onFail As Action(Of Exception)
Dim value As PageOperationResult(Of T)
 
value = Compatibility.LastPageAsync(Of T)(source, onSuccess, onFail)
C++/CLI 
[ExtensionAttribute()]
public:
static PageOperationResult<T^>^ LastPageAsyncgeneric<typename T>
( 
   IPager<T^>^ source,
   Action<Page<T^>^>^ onSuccess,
   Action<Exception^>^ onFail
) 

Parameters

source
onSuccess
onFail

Type Parameters

T

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.