ToQuery 方法 (String, String, Type, Object, EventShape, StreamEventOrder)
從繫結至輸出配接器的資料流建立查詢。輸出配接器是由配接器 Factory 及組態物件的類型所指定。此查詢執行所在的應用程式是由資料流的定義所隱含。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
public Query ToQuery(
string queryName,
string description,
Type adapterFactoryType,
Object adapterConfig,
EventShape eventShape,
StreamEventOrder eventOrder
)
參數
- queryName
型別:System. . :: . .String
查詢的名稱。
- description
型別:System. . :: . .String
查詢的描述。
- adapterFactoryType
型別:System. . :: . .Type
輸出配接器 Factory 的類型
- adapterConfig
型別:System. . :: . .Object
輸出配接器 Factory 的組態。
- eventShape
型別:Microsoft.ComplexEventProcessing. . :: . .EventShape
預期即將傳送到輸出配接器的事件圖形。
- eventOrder
型別:Microsoft.ComplexEventProcessing. . :: . .StreamEventOrder
預期的事件順序。
傳回值
型別:Microsoft.ComplexEventProcessing. . :: . .Query
使用者接著可以開始、停止或管理的可執行查詢。