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

參數

傳回值

型別: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 命名空間