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