Enterprise Library Data Access Application Block  7.0-rc1
The Data Access Application Block abstracts the actual database you are using, and exposes a collection of methods that make it easy to access that database and to perform common tasks.
Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult Class Reference

This class represents an asynchronous operation invoked from the Database class methods. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult:

Public Member Functions

 DaabAsyncResult (IAsyncResult innerAsyncResult, DbCommand command, bool disposeCommand, bool closeConnection, DateTime startTime)
 Construct a new DaabAsyncResult instance. More...
 

Properties

object AsyncState [get]
 The state object passed to the callback. More...
 
WaitHandle AsyncWaitHandle [get]
 Wait handle to use to wait synchronously for completion. More...
 
bool CompletedSynchronously [get]
 true if begin operation completed synchronously. More...
 
bool IsCompleted [get]
 Has the operation finished? More...
 
IAsyncResult InnerAsyncResult [get]
 The underlying IAsyncResult object. More...
 
bool DisposeCommand [get]
 Should the command be disposed by the End method? More...
 
DbCommand Command [get]
 The command that was executed. More...
 
bool CloseConnection [get]
 Should the connection be closed by the End method? More...
 
DbConnection Connection [get]
 Connection the operation was invoked on. More...
 
DateTime StartTime [get]
 Time the operation was started. More...
 

Detailed Description

This class represents an asynchronous operation invoked from the Database class methods.

Constructor & Destructor Documentation

◆ DaabAsyncResult()

Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.DaabAsyncResult ( IAsyncResult  innerAsyncResult,
DbCommand  command,
bool  disposeCommand,
bool  closeConnection,
DateTime  startTime 
)

Construct a new DaabAsyncResult instance.

Parameters
innerAsyncResultThe IAsyncResult object returned from the underlying async operation.
commandCommand that was executed.
disposeCommandShould the command be disposed at EndInvoke time?
closeConnectionShould this connection be closed at EndInvoke time?
startTimeTime operation was invoked.

Property Documentation

◆ AsyncState

object Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.AsyncState
get

The state object passed to the callback.

◆ AsyncWaitHandle

WaitHandle Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.AsyncWaitHandle
get

Wait handle to use to wait synchronously for completion.

◆ CloseConnection

bool Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.CloseConnection
get

Should the connection be closed by the End method?

◆ Command

DbCommand Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.Command
get

The command that was executed.

◆ CompletedSynchronously

bool Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.CompletedSynchronously
get

true if begin operation completed synchronously.

◆ Connection

DbConnection Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.Connection
get

Connection the operation was invoked on.

◆ DisposeCommand

bool Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.DisposeCommand
get

Should the command be disposed by the End method?

◆ InnerAsyncResult

IAsyncResult Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.InnerAsyncResult
get

The underlying IAsyncResult object.

◆ IsCompleted

bool Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.IsCompleted
get

Has the operation finished?

◆ StartTime

DateTime Microsoft.Practices.EnterpriseLibrary.Data.DaabAsyncResult.StartTime
get

Time the operation was started.


The documentation for this class was generated from the following file: