Поделиться через


Метод CreateQueryTemplate(T) (String, String, CepStream(T))

Создает новый шаблон запроса с помощью выражения LINQ.

Пространство имен:  Microsoft.ComplexEventProcessing
Сборка:  Microsoft.ComplexEventProcessing (в Microsoft.ComplexEventProcessing.dll)

Синтаксис

public QueryTemplate CreateQueryTemplate<T>(
    string queryTemplateName,
    string description,
    CepStream<T> streamDefinition
)

Параметры типа

  • T

Параметры

  • queryTemplateName
    Тип: System. . :: . .String
    Имя шаблона запроса в метаданных.

Возвращаемое значение

Тип: Microsoft.ComplexEventProcessing. . :: . .QueryTemplate
Новый создаваемый объект шаблона запроса.

Примеры

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);

См. также

Справочник

Application Класс

Перегрузка CreateQueryTemplate

Пространство имен Microsoft.ComplexEventProcessing