RemoteProvider.Bind<TElement> Method (IQueryable<TElement>, IRemoteObserver<TElement>)
Binds an enumerable sequence to an observer.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Bind(Of TElement) ( _
source As IQueryable(Of TElement), _
sink As IRemoteObserver(Of TElement) _
) As IRemoteBinding
'Usage
Dim source As IQueryable(Of TElement)
Dim sink As IRemoteObserver(Of TElement)
Dim returnValue As IRemoteBinding
returnValue = source.Bind(sink)
public static IRemoteBinding Bind<TElement>(
this IQueryable<TElement> source,
IRemoteObserver<TElement> sink
)
[ExtensionAttribute]
public:
generic<typename TElement>
static IRemoteBinding^ Bind(
IQueryable<TElement>^ source,
IRemoteObserver<TElement>^ sink
)
static member Bind :
source:IQueryable<'TElement> *
sink:IRemoteObserver<'TElement> -> IRemoteBinding
JScript does not support generic types and methods.
Type Parameters
- TElement
The sequence element type.
Parameters
- source
Type: System.Linq.IQueryable<TElement>
The enumerable sequence to subscribe to.
- sink
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteObserver<TElement>
The observer that will receive notifications from the enumerable sequence.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteBinding
The binding between the source and sink.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TElement>. 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).