| Visual Basic (Declaration) | |
|---|---|
Public Event PageChanging As EventHandler(Of EntityQueryPageChangingEventArgs) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As EntityQueryPager(Of T) Dim handler As EventHandler(Of EntityQueryPageChangingEventArgs) AddHandler instance.PageChanging, handler | |
| C# | |
|---|---|
public event EventHandler<EntityQueryPageChangingEventArgs> PageChanging | |
| C++/CLI | |
|---|---|
public: event EventHandler<EntityQueryPageChangingEventArgs^>^ PageChanging | |
The event handler receives an argument of type EntityQueryPageChangingEventArgs containing data related to this event. The following EntityQueryPageChangingEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
| PageIndex | The index of the page to be moved to. |
The EntityQueryPageChangingEventArgs contain the index of the page being requested and allow the page change event to be cancelled.
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