Share via


Méthode RemoteProvider.DefineStreamable<T1, TPayload> (IRemoteProvider, Expression<Func<T1, IStreamable<TPayload>>>)

Définit une fonction distante qui retourne un flux temporel.

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

Syntaxe

'Déclaration
<ExtensionAttribute> _
Public Shared Function DefineStreamable(Of T1, TPayload) ( _
    provider As IRemoteProvider, _
    definition As Expression(Of Func(Of T1, IStreamable(Of TPayload))) _
) As Func(Of T1, IQStreamable(Of TPayload))
'Utilisation
Dim provider As IRemoteProvider 
Dim definition As Expression(Of Func(Of T1, IStreamable(Of TPayload)))
Dim returnValue As Func(Of T1, IQStreamable(Of TPayload))

returnValue = provider.DefineStreamable(definition)
public static Func<T1, IQStreamable<TPayload>> DefineStreamable<T1, TPayload>(
    this IRemoteProvider provider,
    Expression<Func<T1, IStreamable<TPayload>>> definition
)
[ExtensionAttribute]
public:
generic<typename T1, typename TPayload>
static Func<T1, IQStreamable<TPayload>^>^ DefineStreamable(
    IRemoteProvider^ provider, 
    Expression<Func<T1, IStreamable<TPayload>^>^>^ definition
)
static member DefineStreamable : 
        provider:IRemoteProvider * 
        definition:Expression<Func<'T1, IStreamable<'TPayload>>> -> Func<'T1, IQStreamable<'TPayload>> 
JScript ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • T1
    Premier type de paramètre.
  • TPayload
    Type de charge utile.

Paramètres

Valeur de retour

Type : System.Func<T1, IQStreamable<TPayload>>
Fonction distante qui retourne un flux temporel.

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 IRemoteProvider. 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

RemoteProvider Classe

Surcharge DefineStreamable

Espace de noms Microsoft.ComplexEventProcessing.Linq