Registers the listener to the space using the specified template.
This can only be used when the IDataEventSession is created with Batch enabled.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
IEventRegistration AddBatchListener<T>( T template, EventHandler<SpaceBatchDataEventArgs<T>> listener )
Function AddBatchListener(Of T) ( _ template As T, _ listener As EventHandler(Of SpaceBatchDataEventArgs(Of T)) _ ) As IEventRegistration
generic<typename T> IEventRegistration^ AddBatchListener( T template, EventHandler<SpaceBatchDataEventArgs<T>^>^ listener )
Generic Template Parameters
- T
- Type of object to listen to.
Parameters
- template (T)
- The template used for matching.
- listener (EventHandler<(Of <(<'SpaceBatchDataEventArgs<(Of <(<'T>)>)>>)>)>)
- The listener which will handle notifications.
Return Value
An event registration token.