RemoteProvider.GetObserver<TElement> Method (IRemoteProvider, String)
Retrieves a remote observer.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetObserver(Of TElement) ( _
provider As IRemoteProvider, _
id As String _
) As IRemoteObserver(Of TElement)
'Usage
Dim provider As IRemoteProvider
Dim id As String
Dim returnValue As IRemoteObserver(Of TElement)
returnValue = provider.GetObserver(id)
public static IRemoteObserver<TElement> GetObserver<TElement>(
this IRemoteProvider provider,
string id
)
[ExtensionAttribute]
public:
generic<typename TElement>
static IRemoteObserver<TElement>^ GetObserver(
IRemoteProvider^ provider,
String^ id
)
static member GetObserver :
provider:IRemoteProvider *
id:string -> IRemoteObserver<'TElement>
JScript does not support generic types and methods.
Type Parameters
- TElement
The element type.
Parameters
- provider
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteProvider
The remote LINQ provider.
- id
Type: System.String
The observer identifier.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteObserver<TElement>
The remote observer.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IRemoteProvider. 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).