Share via


QStreamable.Scan<TSourceEvent, TSource, TResult> Method

Scans a stream using a user-defined stream operator.

Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Scan(Of TSourceEvent As TypedEvent(Of TSource), TSource, TResult) ( _
    source As IQStreamable(Of TSource), _
    initializeOp As Expression(Of Func(Of CepStreamOperator(Of TSourceEvent, TSource, TResult))) _
) As IQStreamable(Of TResult)
'Usage
Dim source As IQStreamable(Of TSource)
Dim initializeOp As Expression(Of Func(Of CepStreamOperator(Of TSourceEvent, TSource, TResult)))
Dim returnValue As IQStreamable(Of TResult)

returnValue = source.Scan(initializeOp)
public static IQStreamable<TResult> Scan<TSourceEvent, TSource, TResult>(
    this IQStreamable<TSource> source,
    Expression<Func<CepStreamOperator<TSourceEvent, TSource, TResult>>> initializeOp
)
where TSourceEvent : TypedEvent<TSource>
[ExtensionAttribute]
public:
generic<typename TSourceEvent, typename TSource, typename TResult>
where TSourceEvent : TypedEvent<TSource>
static IQStreamable<TResult>^ Scan(
    IQStreamable<TSource>^ source, 
    Expression<Func<CepStreamOperator<TSourceEvent, TSource, TResult>^>^>^ initializeOp
)
static member Scan : 
        source:IQStreamable<'TSource> * 
        initializeOp:Expression<Func<CepStreamOperator<'TSourceEvent, 'TSource, 'TResult>>> -> IQStreamable<'TResult>  when 'TSourceEvent : TypedEvent<'TSource>
JScript does not support generic types and methods.

Type Parameters

  • TSourceEvent
    The source event type.
  • TSource
    The source payload type.
  • TResult
    The result payload type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
The result stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).

See Also

Reference

QStreamable Class

Microsoft.ComplexEventProcessing.Linq Namespace