Application.CreateQuery Method (String, String, QueryBinder)
Creates a query from a query binder.
Namespace: Microsoft.ComplexEventProcessing
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public Query CreateQuery(
string name,
string description,
QueryBinder queryBinder
)
Parameters
- name
Type: System.String
Name for the query object in metadata.
- description
Type: System.String
Description for the query in metadata.
- queryBinder
Type: Microsoft.ComplexEventProcessing.QueryBinder
Binder object that contains the input and output binding information for the query.
Return Value
Type: Microsoft.ComplexEventProcessing.Query
The new query object being generated.
Exceptions
Exception | Condition |
---|---|
InvalidDefinitionException | The exception that is thrown when the query creation fails, for example, due to missing bindings in the query binder. |