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
メタデータ内のクエリ テンプレートの名前。
- description
型: System. . :: . .String
クエリ テンプレートの説明。
- streamDefinition
型: Microsoft.ComplexEventProcessing.Linq. . :: . .CepStream< (Of < ( <'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);