Cocktail Help Reference
Page<T> Constructor
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > Page<T> Class : Page<T> Constructor



pageIndex
The index of the page moved to.
pageWasFound
Indicates whether the page was found.
results
The data associated with the current page.

Glossary Item Box

Creates and initializes a new Page.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal pageIndex As Integer, _
   ByVal pageWasFound As Boolean, _
   ByVal results As IEnumerable(Of T) _
)
Visual Basic (Usage)Copy Code
Dim pageIndex As Integer
Dim pageWasFound As Boolean
Dim results As IEnumerable(Of T)
 
Dim instance As New Page(Of T)(pageIndex, pageWasFound, results)
C# 
public Page<T>( 
   int pageIndex,
   bool pageWasFound,
   IEnumerable<T> results
)
C++/CLI 
public:
Page<T>( 
   int pageIndex,
   bool pageWasFound,
   IEnumerable<T^>^ results
)

Parameters

pageIndex
The index of the page moved to.
pageWasFound
Indicates whether the page was found.
results
The data associated with the current page.

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.