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

Clips the end time of events in source to the start time of the next corresponding event in clip matching predicate.

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

Syntax

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

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

Type Parameters

  • TSource
    The source stream payload type.
  • TClip
    The clip stream payload type.

Parameters

Return Value

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