QStreamable.ClipEventDuration<TSource, TClip, TKey> Method (IQStreamable<TSource>, IQStreamable<TClip>, Expression<Func<TSource, TKey>>, Expression<Func<TClip, TKey>>)

Clips the end time of events in source to the start time of the next corresponding event in clip with a equivalent key value.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ClipEventDuration(Of TSource, TClip, TKey) ( _
    source As IQStreamable(Of TSource), _
    clip As IQStreamable(Of TClip), _
    sourceKeySelector As Expression(Of Func(Of TSource, TKey)), _
    clipKeySelector As Expression(Of Func(Of TClip, TKey)) _
) As IQStreamable(Of TSource)
'Usage
Dim source As IQStreamable(Of TSource)
Dim clip As IQStreamable(Of TClip)
Dim sourceKeySelector As Expression(Of Func(Of TSource, TKey))
Dim clipKeySelector As Expression(Of Func(Of TClip, TKey))
Dim returnValue As IQStreamable(Of TSource)

returnValue = source.ClipEventDuration(clip, _
    sourceKeySelector, clipKeySelector)
public static IQStreamable<TSource> ClipEventDuration<TSource, TClip, TKey>(
    this IQStreamable<TSource> source,
    IQStreamable<TClip> clip,
    Expression<Func<TSource, TKey>> sourceKeySelector,
    Expression<Func<TClip, TKey>> clipKeySelector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TClip, typename TKey>
static IQStreamable<TSource>^ ClipEventDuration(
    IQStreamable<TSource>^ source, 
    IQStreamable<TClip>^ clip, 
    Expression<Func<TSource, TKey>^>^ sourceKeySelector, 
    Expression<Func<TClip, TKey>^>^ clipKeySelector
)
static member ClipEventDuration : 
        source:IQStreamable<'TSource> * 
        clip:IQStreamable<'TClip> * 
        sourceKeySelector:Expression<Func<'TSource, 'TKey>> * 
        clipKeySelector:Expression<Func<'TClip, 'TKey>> -> IQStreamable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    Source stream payload type.
  • TClip
    Clip stream payload type.
  • TKey
    Key type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TSource>
Altered 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

ClipEventDuration Overload

Microsoft.ComplexEventProcessing.Linq Namespace