Partager via


Méthode QStreamable.ShiftEventTime<TPayload>

Décale les événements selon des valeurs spécifiées par le paramètre shiftSelector.

Espace de noms :  Microsoft.ComplexEventProcessing.Linq
Assembly :  Microsoft.ComplexEventProcessing (en Microsoft.ComplexEventProcessing.dll)

Syntaxe

'Déclaration
<ExtensionAttribute> _
Public Shared Function ShiftEventTime(Of TPayload) ( _
    source As IQStreamable(Of TPayload), _
    shiftSelector As Expression(Of Func(Of CepEvent, TimeSpan)) _
) As IQStreamable(Of TPayload)
'Utilisation
Dim source As IQStreamable(Of TPayload)
Dim shiftSelector As Expression(Of Func(Of CepEvent, TimeSpan))
Dim returnValue As IQStreamable(Of TPayload)

returnValue = source.ShiftEventTime(shiftSelector)
public static IQStreamable<TPayload> ShiftEventTime<TPayload>(
    this IQStreamable<TPayload> source,
    Expression<Func<CepEvent, TimeSpan>> shiftSelector
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IQStreamable<TPayload>^ ShiftEventTime(
    IQStreamable<TPayload>^ source, 
    Expression<Func<CepEvent^, TimeSpan>^>^ shiftSelector
)
static member ShiftEventTime : 
        source:IQStreamable<'TPayload> * 
        shiftSelector:Expression<Func<CepEvent, TimeSpan>> -> IQStreamable<'TPayload> 
JScript ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • TPayload
    Type de charge utile.

Paramètres

Valeur de retour

Type : Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
Flux de données modifié.

Remarque relative à l'utilisation

En Visual Basic et C#, vous pouvez appeler cette méthode comme méthode d'instance sur tout objet de type IQStreamable<TPayload>. Lorsque vous utilisez la syntaxe de la méthode d'instance pour appeler cette méthode, omettez le premier paramètre. Pour plus d'informations, consultez https://msdn.microsoft.com/fr-fr/library/bb384936(v=sql.111) ou https://msdn.microsoft.com/fr-fr/library/bb383977(v=sql.111).

Voir aussi

Référence

QStreamable Classe

Espace de noms Microsoft.ComplexEventProcessing.Linq