DataAccessor<TResult>.BeginExecute Method

Begin executing the database object asynchronously, returning a IAsyncResult object that can be used to retrieve the result set after the operation completes.

Namespace: Microsoft.Practices.EnterpriseLibrary.Data
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public abstract IAsyncResult BeginExecute(
    AsyncCallback callback,
    Object state,
    params Object[] parameterValues
)
'Declaration
Public MustOverride Function BeginExecute ( 
    callback As AsyncCallback,
    state As Object,
    ParamArray parameterValues As Object()
) As IAsyncResult
public:
virtual IAsyncResult^ BeginExecute(
    AsyncCallback^ callback, 
    Object^ state, 
    ... array<Object^>^ parameterValues
) abstract

Parameters

  • callback
    Type: System.AsyncCallback
    Callback to execute when the operation's results are available. May be null if you don't wish to use a callback.
  • state
    Type: System.Object
    Extra information that will be passed to the callback. May be null.
  • parameterValues
    Type: array<System.Object[]
    Parameters to pass to the database.

Return Value

Type: IAsyncResult
The IAsyncResult representing this operation.

Remarks

This operation will throw if the underlying Database object does not support asynchronous operation.

Exceptions

Exception Condition
System.InvalidOperationException The underlying database does not support asynchronous operation.

See Also

DataAccessor<TResult> Class

DataAccessor<TResult> Members

Microsoft.Practices.EnterpriseLibrary.Data Namespace