Share via


DynamicQueryCompositionExtensions.ToStream<TPayload> Method (Query, String)

Creates a new input stream with a given name bound to the output event stream of an existing query.

Namespace:  Microsoft.ComplexEventProcessing
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

public static CepStream<TPayload> ToStream<TPayload>(
    this Query query,
    string streamName
)

Type Parameters

  • TPayload
    Type of the payload for the new stream.

Parameters

  • streamName
    Type: System.String
    Name of the input stream in the query template.

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
An instance of the CepStream class that can be used to create new queries.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Query. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).

Remarks

The given stream name can be used to bind with a query binder, and to retrieve diagnostics.

See Also

Reference

DynamicQueryCompositionExtensions Class

ToStream Overload

Microsoft.ComplexEventProcessing Namespace