Waits for the pending asynchronous take to complete.
Declaration Syntax
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 )
Generic Template Parameters
- T
- Type of object to take.
Parameters
- asyncResult (IAsyncResult<(Of <(<'T>)>)>)
- The reference to the pending asynchornous request to wait for.
Return Value
A copy of the object taken from the space (null if no match was found).
Exceptions
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. |