RemoteProvider.Bind<TElement> 方法 (IQueryable<TElement>, IRemoteObserver<TElement>)

將可列舉的序列繫結至觀察器。

命名空間:  Microsoft.ComplexEventProcessing.Linq
組件:  Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)

語法

'宣告
<ExtensionAttribute> _
Public Shared Function Bind(Of TElement) ( _
    source As IQueryable(Of TElement), _
    sink As IRemoteObserver(Of TElement) _
) As IRemoteBinding
'用途
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 不支援泛型型別及方法。

型別參數

  • TElement
    序列元素類型。

參數

傳回值

型別:Microsoft.ComplexEventProcessing.Linq.IRemoteBinding
source 與 sink 之間的繫結。

使用注意事項

在 Visual Basic 及 C# 中,您可以在任何型別 IQueryable<TElement> 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.111)https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.111)

請參閱

參考

RemoteProvider 類別

Bind 多載

Microsoft.ComplexEventProcessing.Linq 命名空間