Back to Devexpress

VirtualServerModeRowsEventArgs.UserData Property

corelibraries-devexpress-dot-data-dot-virtualservermoderowseventargs-d1b6cfe7.md

latest2.7 KB
Original Source

VirtualServerModeRowsEventArgs.UserData Property

Read this parameter to get custom data passed from the previously called Task or ConfigurationChanged event handler. When handling the VirtualServerModeSource.ConfigurationChanged event, set the UserData event parameter to pass custom data to a subsequent VirtualServerModeSource.MoreRows event handler (unless you specify the RowsTask event parameter).

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public object UserData { get; set; }
vb
Public Property UserData As Object

Property Value

TypeDescription
Object

Any custom data.

|

Remarks

Your VirtualServerModeSource.MoreRows event handler typically creates a Task< VirtualServerModeRowsTaskResult > object to return requested rows (a VirtualServerModeSource.ConfigurationChanged event handler can optionally create this Task). To propagate custom data from a Task to a subsequent VirtualServerModeSource.MoreRows event call (and thus to a subsequent Task), set the current Task’s VirtualServerModeRowsTaskResult.UserData property.

When handling the VirtualServerModeSource.ConfigurationChanged event, if you do not create a Task, you can propagate custom data to a subsequent VirtualServerModeSource.MoreRows event call by specifying the event’s UserData property.

See Also

VirtualServerModeRowsEventArgs Class

VirtualServerModeRowsEventArgs Members

DevExpress.Data Namespace