Waits for the pending asynchronous take to complete.
            
| C# | Visual Basic | Visual C++ | J# | 
T EndTake<T>( IAsyncResult<T> asyncResult )
Function EndTake(Of T) ( _ asyncResult As IAsyncResult(Of T) _ ) As T
generic<typename T> T EndTake( IAsyncResult<T>^ asyncResult )
- T
 - Type of object to take.
 
- asyncResult (IAsyncResult<(Of <(T>)>))
 - The reference to the pending asynchornous request to wait for.
 
A copy of the object taken from the space (null 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. | 
