Begins an asynchronous Read<(Of <<'(T>)>>)(T, ITransaction, Int64, ReadModifiers) operation.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
IAsyncResult<T> BeginRead<T>( T template, ITransaction tx, long timeout, ReadModifiers modifiers, AsyncCallback<T> userCallback, Object stateObject )
Function BeginRead(Of T) ( _ template As T, _ tx As ITransaction, _ timeout As Long, _ modifiers As ReadModifiers, _ userCallback As AsyncCallback(Of T), _ stateObject As Object _ ) As IAsyncResult(Of T)
generic<typename T> IAsyncResult<T>^ BeginRead( T template, ITransaction^ tx, long long timeout, ReadModifiers modifiers, AsyncCallback<T>^ userCallback, Object^ stateObject )
Generic Template Parameters
- T
- Type of object to read.
Parameters
- template (T)
- The template used for matching.
- tx (ITransaction)
- The transaction (if any) under which to work.
- timeout (Int64)
- How long the client is willing to wait for a transactionally proper matching object.
- modifiers (ReadModifiers)
- The modifier(s) to define behaviour of locks.
- userCallback (AsyncCallback<(Of <(<'T>)>)>)
- The method to be called when the asynchronous operation is complete.
- stateObject (Object)
- A user-provided object that distinguishes this particular asynchronous read request from other requests.
Return Value
An IAsyncResult that references the asynchronous read.