QStreamable.CountWindow<TPayload> Method

Produces a windowed stream based on a count. Each window consists of events with count unique start times. The window slides when a new event arrives with a distinct start time.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CountWindow(Of TPayload) ( _
    source As IQStreamable(Of TPayload), _
    count As UInteger _
) As IQWindowedStreamable(Of TPayload)
'Usage
Dim source As IQStreamable(Of TPayload)
Dim count As UInteger 
Dim returnValue As IQWindowedStreamable(Of TPayload)

returnValue = source.CountWindow(count)
public static IQWindowedStreamable<TPayload> CountWindow<TPayload>(
    this IQStreamable<TPayload> source,
    uint count
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IQWindowedStreamable<TPayload>^ CountWindow(
    IQStreamable<TPayload>^ source, 
    unsigned int count
)
static member CountWindow : 
        source:IQStreamable<'TPayload> * 
        count:uint32 -> IQWindowedStreamable<'TPayload> 
JScript does not support generic types and methods.

Type Parameters

  • TPayload
    The payload type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQWindowedStreamable<TPayload>
The windowed stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<TPayload>. 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