Partager via


Méthode QStreamable.AlterEventDuration<TPayload>

Modifie la durée des événements sans affecter l'heure de début.

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

Syntaxe

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

returnValue = source.AlterEventDuration(durationSelector)
public static IQStreamable<TPayload> AlterEventDuration<TPayload>(
    this IQStreamable<TPayload> source,
    Expression<Func<CepEvent<TPayload>, TimeSpan>> durationSelector
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IQStreamable<TPayload>^ AlterEventDuration(
    IQStreamable<TPayload>^ source, 
    Expression<Func<CepEvent<TPayload>^, TimeSpan>^>^ durationSelector
)
static member AlterEventDuration : 
        source:IQStreamable<'TPayload> * 
        durationSelector:Expression<Func<CepEvent<'TPayload>, 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