Application.CreateQueryTemplate<T> Method (String, String, CepStream<T>)

Creates a new query template from a LINQ expression.

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

Syntax

'Declaration
Public Function CreateQueryTemplate(Of T) ( _
    queryTemplateName As String, _
    description As String, _
    streamDefinition As CepStream(Of T) _
) As QueryTemplate
'Usage
Dim instance As Application
Dim queryTemplateName As String
Dim description As String
Dim streamDefinition As CepStream(Of T)
Dim returnValue As QueryTemplate

returnValue = instance.CreateQueryTemplate(queryTemplateName, _
    description, streamDefinition)
public QueryTemplate CreateQueryTemplate<T>(
    string queryTemplateName,
    string description,
    CepStream<T> streamDefinition
)
public:
generic<typename T>
QueryTemplate^ CreateQueryTemplate(
    String^ queryTemplateName, 
    String^ description, 
    CepStream<T>^ streamDefinition
)
member CreateQueryTemplate : 
        queryTemplateName:string * 
        description:string * 
        streamDefinition:CepStream<'T> -> QueryTemplate 
JScript does not support generic types and methods.

Type Parameters

  • T

Parameters

  • queryTemplateName
    Type: System.String
    Name for the query template in metadata.
  • description
    Type: System.String
    Description of the query template.

Return Value

Type: Microsoft.ComplexEventProcessing.QueryTemplate
New query template object being created.

Examples

var inputstream = CepStream{RawData}.Create("filterInput");
            var filtered = from e in inputstream
                           where e.Value > 30
                           select e;
            QueryTemplate filterQT = application.CreateQueryTemplate("filterLogic", "Description of the query template", filtered);

See Also

Reference

Application Class

CreateQueryTemplate Overload

Microsoft.ComplexEventProcessing Namespace