Share via


QStreamable.UserDefinedOperator<TSource, TResult> Method (IQWindowSource<TSource>, Expression<Func<CepTimeSensitiveOperator<TSource, TResult>>>)

Applies a user-defined operator to a window.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UserDefinedOperator(Of TSource, TResult) ( _
    source As IQWindowSource(Of TSource), _
    initializeUdo As Expression(Of Func(Of CepTimeSensitiveOperator(Of TSource, TResult))) _
) As IQWindowResult(Of TResult)
'Usage
Dim source As IQWindowSource(Of TSource)
Dim initializeUdo As Expression(Of Func(Of CepTimeSensitiveOperator(Of TSource, TResult)))
Dim returnValue As IQWindowResult(Of TResult)

returnValue = source.UserDefinedOperator(initializeUdo)
public static IQWindowResult<TResult> UserDefinedOperator<TSource, TResult>(
    this IQWindowSource<TSource> source,
    Expression<Func<CepTimeSensitiveOperator<TSource, TResult>>> initializeUdo
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TResult>
static IQWindowResult<TResult>^ UserDefinedOperator(
    IQWindowSource<TSource>^ source, 
    Expression<Func<CepTimeSensitiveOperator<TSource, TResult>^>^>^ initializeUdo
)
static member UserDefinedOperator : 
        source:IQWindowSource<'TSource> * 
        initializeUdo:Expression<Func<CepTimeSensitiveOperator<'TSource, 'TResult>>> -> IQWindowResult<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The source payload type.
  • TResult
    The result output type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQWindowResult<TResult>
The window containing results of computation.

Usage Note

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

UserDefinedOperator Overload

Microsoft.ComplexEventProcessing.Linq Namespace