CepStream<TPayload>.ToQuery 方法 (Application, String, String, Type, Object, EventShape, StreamEventOrder, Boolean)

 

從繫結至執行於特定應用程式之輸出配接器的資料流中建立查詢。 輸出配接器是由配接器 Factory 及組態物件的類型所指定。 查詢可以指定為具有恢復功能。

命名空間:   Microsoft.ComplexEventProcessing.Linq
組件:  Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)

語法

public Query ToQuery(
    Application application,
    string queryName,
    string description,
    Type adapterFactoryType,
    object adapterConfig,
    EventShape eventShape,
    StreamEventOrder eventOrder,
    bool isResilient
)
public:
Query^ ToQuery(
    Application^ application,
    String^ queryName,
    String^ description,
    Type^ adapterFactoryType,
    Object^ adapterConfig,
    EventShape eventShape,
    StreamEventOrder eventOrder,
    bool isResilient
)
member ToQuery : 
        application:Application *
        queryName:string *
        description:string *
        adapterFactoryType:Type *
        adapterConfig:Object *
        eventShape:EventShape *
        eventOrder:StreamEventOrder *
        isResilient:bool -> Query
Public Function ToQuery (
    application As Application,
    queryName As String,
    description As String,
    adapterFactoryType As Type,
    adapterConfig As Object,
    eventShape As EventShape,
    eventOrder As StreamEventOrder,
    isResilient As Boolean
) As Query

參數

  • application
    將主控查詢的應用程式。
  • queryName
    查詢的名稱。
  • description
    查詢的描述。
  • adapterFactoryType
    輸出配接器 Factory 的類型。
  • adapterConfig
    輸出配接器 Factory 的組態。
  • eventShape
    預期即將傳送到輸出配接器的事件圖形。
  • eventOrder
    預期的事件順序。
  • isResilient
    如果查詢具有恢復功能,則為 true,否則為 false

傳回值

Type: Microsoft.ComplexEventProcessing.Query

可執行的查詢,使用者可接著開始、停止或管理此查詢,如果 isResilienttrue,則此查詢還具有恢復功能。

備註

如需詳細資訊,請參閱<建立具有恢復功能的 StreamInsight 應用程式>。

請參閱

ToQuery 超載
CepStream<TPayload> 類別
Microsoft.ComplexEventProcessing.Linq 命名空間

回到頁首