次の方法で共有


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 名前空間