Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Shared Function GoToPageAsync(Of T)( _ ByVal source As IPager(Of T), _ ByVal pageIndex As Integer, _ ByVal onSuccess As Action(Of Page(Of T)), _ ByVal onFail As Action(Of Exception) _ ) As PageOperationResult(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim source As IPager(Of T) Dim pageIndex As Integer Dim onSuccess As Action(Of Page(Of T)) Dim onFail As Action(Of Exception) Dim value As PageOperationResult(Of T) value = Compatibility.GoToPageAsync(Of T)(source, pageIndex, onSuccess, onFail) |
C# | |
---|---|
[ExtensionAttribute()] public static PageOperationResult<T> GoToPageAsync<T>( IPager<T> source, int pageIndex, Action<Page<T>> onSuccess, Action<Exception> onFail ) |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static PageOperationResult<T^>^ GoToPageAsyncgeneric<typename T> ( IPager<T^>^ source, int pageIndex, Action<Page<T^>^>^ onSuccess, Action<Exception^>^ onFail ) |
Parameters
- source
- pageIndex
- onSuccess
- onFail
Type Parameters
- T
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