ToQuery 方法 (String, String, Type, Object, EventShape, StreamEventOrder, Boolean)
從繫結至輸出配接器的資料流建立查詢。輸出配接器是由配接器 Factory 及組態物件的類型所指定。此查詢執行所在的應用程式是由資料流的定義所隱含。查詢可以指定為具有恢復功能。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
public Query ToQuery(
string queryName,
string description,
Type adapterFactoryType,
Object adapterConfig,
EventShape eventShape,
StreamEventOrder eventOrder,
bool isResilient
)
參數
- queryName
型別:System. . :: . .String
查詢的名稱。
- description
型別:System. . :: . .String
查詢的描述。
- adapterFactoryType
型別:System. . :: . .Type
輸出配接器 Factory 的類型
- adapterConfig
型別:System. . :: . .Object
輸出配接器 Factory 的組態。
- eventShape
型別:Microsoft.ComplexEventProcessing. . :: . .EventShape
預期即將傳送到輸出配接器的事件圖形。
- eventOrder
型別:Microsoft.ComplexEventProcessing. . :: . .StreamEventOrder
預期的事件順序。
- isResilient
型別:System. . :: . .Boolean
如果查詢具有恢復功能,則為 true,否則為 false。
傳回值
型別:Microsoft.ComplexEventProcessing. . :: . .Query
可執行的查詢,使用者可接著開始、停止或管理此查詢,如果 isResilient 為 true,則此查詢還具有恢復功能。
備註
如需詳細資訊,請參閱<建立具有恢復功能的 StreamInsight 應用程式>。