ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering.Tools Namespace / EnumerableExtension Class / WithProgress<T,T2> Method
The type of elements in the sequence.
The type of progress information.
The source sequence.
The IProgress instance to report progress to.
A function to get progress information from an element.

In This Topic
    WithProgress<T,T2> Method
    In This Topic
    Provides support for LINQ queries with a progress provider.
    Syntax
    'Declaration
     
    Public Shared Function WithProgress
        (Of T,T2)( _
       ByVal items As IEnumerable(Of T), _
       ByVal progress As IProgress(Of T2), _
       ByVal getProgressInfo As Func(Of T,T2) _
    ) As IEnumerable(Of T)
    public static IEnumerable<T> WithProgress<T,T2>( 
       IEnumerable<T> items,
       IProgress<T2> progress,
       Func<T,T2> getProgressInfo
    )

    Parameters

    items
    The source sequence.
    progress
    The IProgress instance to report progress to.
    getProgressInfo
    A function to get progress information from an element.

    Type Parameters

    T
    The type of elements in the sequence.
    T2
    The type of progress information.

    Return Value

    A sequence that reports progress.
    See Also