Take an array of matching objects from the space.
Matching is done as in Take with no timeout.

C# | Visual Basic | Visual C++ | J# |
T[] TakeMultiple<T>( IQuery<T> query, ITransaction tx )
Function TakeMultiple(Of T) ( _ query As IQuery(Of T), _ tx As ITransaction _ ) As T()
generic<typename T> array<T>^ TakeMultiple( IQuery<T>^ query, ITransaction^ tx )

- T
- Type of object to read.

- query (IQuery<(Of <(T>)>))
- The query used for matching.
- tx (ITransaction)
- The transaction (if any) under which to work.

An array of objects taken from the space (empty array if no match was found).

Exception | Condition |
---|---|
UnusableEntryException | A serialized field of the object being read cannot be deserialized. |
TransactionException | Transaction error occured. |
InactiveSpaceException | The space is in backup mode and therefore is not active. |
EntryVersionConflictException | Operation is rejected as a result of optimistic locking version conflict. |
SqlQueryException | The query template is an illegal SqlQuery. |