GigaSpaces XAP.NET Documentation
AddListener<(Of <(T>)>) Method (query, listener, eventType)
Class LibraryGigaSpaces.Core.EventsIDataEventSessionAddListener<(Of <(T>)>)(IQuery<(Of <(T>)>), EventHandler<(Of <(SpaceDataEventArgs<(Of <(T>)>)>)>), DataEventType)
Registers the listener to the space using the specified template.
Declaration Syntax
C#Visual BasicVisual C++J#
IEventRegistration AddListener<T>(
	IQuery<T> query,
	EventHandler<SpaceDataEventArgs<T>> listener,
	DataEventType eventType
Function AddListener(Of T) ( _
	query As IQuery(Of T), _
	listener As EventHandler(Of SpaceDataEventArgs(Of T)), _
	eventType As DataEventType _
) As IEventRegistration
generic<typename T>
IEventRegistration^ AddListener(
	IQuery<T>^ query, 
	EventHandler<SpaceDataEventArgs<T>^>^ listener, 
	DataEventType eventType
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
Type of object to listen to.
query (IQuery<(Of <(T>)>))
The query used for matching.
listener (EventHandler<(Of <(SpaceDataEventArgs<(Of <(T>)>)>)>))
The listener which will handle notifications.
eventType (DataEventType)
The type of events you wish to receive notification on.
Return Value
An event registration token.
SqlQueryExceptionThe query template is an illegal SqlQuery.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: (