ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering.Tools Namespace / EnumerableExtension Class / ThrowIfCancelled<T> Method
The type of elements in the sequence.
The source sequence.
A token to cancel enumeration.

In This Topic
    ThrowIfCancelled<T> Method
    In This Topic
    Provides support for LINQ queries with a System.Threading.CancellationToken.
    Syntax
    'Declaration
     
    Public Shared Function ThrowIfCancelled(Of T)( _
       ByVal items As IEnumerable(Of T), _
       ByVal token As CancellationToken _
    ) As IEnumerable(Of T)
    public static IEnumerable<T> ThrowIfCancelled<T>( 
       IEnumerable<T> items,
       CancellationToken token
    )

    Parameters

    items
    The source sequence.
    token
    A token to cancel enumeration.

    Type Parameters

    T
    The type of elements in the sequence.

    Return Value

    A sequence that supports throwing if cancelled.
    See Also