| Visual Basic (Declaration) | |
|---|---|
Public ReadOnly Property TotalItemCount As Integer  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As EntityQueryPager(Of T) Dim value As Integer value = instance.TotalItemCount  | |
| C# | |
|---|---|
public int TotalItemCount {get;}  | |
This property will return -1 until all pages are fetched or the TotalDataSourceItemCount is known. The number will be an approximation when a large number of inserts and deletes have occurred.
            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