Back to Devexpress

VirtualServerModeRowsEventArgs.CancellationToken Property

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

latest4.0 KB
Original Source

VirtualServerModeRowsEventArgs.CancellationToken Property

Gets a token that allows you to respond to a task cancellation request invoked by the grid control.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public CancellationToken CancellationToken { get; }
vb
Public ReadOnly Property CancellationToken As CancellationToken

Property Value

TypeDescription
CancellationToken

A cancellation token.

|

Remarks

For more information on canceling tasks, see Cancellation in Managed Threads.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CancellationToken property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

connect-winforms-grid-to-dotnetcore-service/CS/WinForms.Client/VirtualServerModeDataLoader.cs#L55

csharp
return new VirtualServerModeRowsTaskResult(dataFetchResult.Items, moreRowsAvailable);
    }, e.CancellationToken);
}

connect-winforms-grid-to-dotnetcore-service-enable-editing/CS/WinForms.Client/VirtualServerModeDataLoader.cs#L44

csharp
return new VirtualServerModeRowsTaskResult(dataFetchResult.Items, moreRowsAvailable);
    }, e.CancellationToken);
}

connect-winforms-grid-to-dotnetcore-service-enable-pbac/CS/WinForms.Client/VirtualServerModeDataLoader.cs#L44

csharp
return new VirtualServerModeRowsTaskResult(dataFetchResult.Items, moreRowsAvailable);
    }, e.CancellationToken);
}

connect-winforms-grid-to-dotnetcore-service/VB/WinForms.Client/VirtualServerModeDataLoader.vb#L56

vb
End Using
                          End Function, e.CancellationToken)
End Function

connect-winforms-grid-to-dotnetcore-service-enable-editing/VB/WinForms.Client/VirtualServerModeDataLoader.vb#L43

vb
Return New VirtualServerModeRowsTaskResult(dataFetchResult.Items, moreRowsAvailable)
                    End Function, e.CancellationToken)
End Function

See Also

VirtualServerModeRowsEventArgs Class

VirtualServerModeRowsEventArgs Members

DevExpress.Data Namespace