Take any matching object from the space, blocking until one exists. Return null if the timeout expires.
![](../icons/collapse_all.gif)
![](../icons/collapse_all.gif)
- T
- Type of object to take.
![](../icons/collapse_all.gif)
- query (IQuery<(Of <(<'T>)>)>)
- The query used for matching.
![](../icons/collapse_all.gif)
The object taken from the space (null if no match was found).
![](../icons/collapse_all.gif)
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. |