QStreamable.AlterEventStartTime<TPayload> Method
Alters the start time of events without affecting duration.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function AlterEventStartTime(Of TPayload) ( _
source As IQStreamable(Of TPayload), _
startTimeSelector As Expression(Of Func(Of CepEvent, DateTime)) _
) As IQStreamable(Of TPayload)
'Usage
Dim source As IQStreamable(Of TPayload)
Dim startTimeSelector As Expression(Of Func(Of CepEvent, DateTime))
Dim returnValue As IQStreamable(Of TPayload)
returnValue = source.AlterEventStartTime(startTimeSelector)
public static IQStreamable<TPayload> AlterEventStartTime<TPayload>(
this IQStreamable<TPayload> source,
Expression<Func<CepEvent, DateTime>> startTimeSelector
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IQStreamable<TPayload>^ AlterEventStartTime(
IQStreamable<TPayload>^ source,
Expression<Func<CepEvent^, DateTime>^>^ startTimeSelector
)
static member AlterEventStartTime :
source:IQStreamable<'TPayload> *
startTimeSelector:Expression<Func<CepEvent, DateTime>> -> IQStreamable<'TPayload>
JScript does not support generic types and methods.
Type Parameters
- TPayload
The payload type.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
The input stream.
- startTimeSelector
Type: System.Linq.Expressions.Expression<Func<CepEvent, DateTime>>
The function modifying the start time of events.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
The altered stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<TPayload>. 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.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).