DataAsyncCommandEvents Constructor (DataAsyncCommandStartEventHandler, DataAsyncCommandFailureEventHandler, DataAsyncCommandFetchEventHandler, DataAsyncCommandFetchEventHandler, DataAsyncCommandCancelEventHandler, DataAsyncCommandEndEventHandler)
Initializes a new instance of the DataAsyncCommandEvents class with the specified delegates.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Sub New ( _
commandStart As DataAsyncCommandStartEventHandler, _
commandFailure As DataAsyncCommandFailureEventHandler, _
commandNextResult As DataAsyncCommandFetchEventHandler, _
commandRead As DataAsyncCommandFetchEventHandler, _
commandCancel As DataAsyncCommandCancelEventHandler, _
commandEnd As DataAsyncCommandEndEventHandler _
)
public DataAsyncCommandEvents(
DataAsyncCommandStartEventHandler commandStart,
DataAsyncCommandFailureEventHandler commandFailure,
DataAsyncCommandFetchEventHandler commandNextResult,
DataAsyncCommandFetchEventHandler commandRead,
DataAsyncCommandCancelEventHandler commandCancel,
DataAsyncCommandEndEventHandler commandEnd
)
public:
DataAsyncCommandEvents(
DataAsyncCommandStartEventHandler^ commandStart,
DataAsyncCommandFailureEventHandler^ commandFailure,
DataAsyncCommandFetchEventHandler^ commandNextResult,
DataAsyncCommandFetchEventHandler^ commandRead,
DataAsyncCommandCancelEventHandler^ commandCancel,
DataAsyncCommandEndEventHandler^ commandEnd
)
new :
commandStart:DataAsyncCommandStartEventHandler *
commandFailure:DataAsyncCommandFailureEventHandler *
commandNextResult:DataAsyncCommandFetchEventHandler *
commandRead:DataAsyncCommandFetchEventHandler *
commandCancel:DataAsyncCommandCancelEventHandler *
commandEnd:DataAsyncCommandEndEventHandler -> DataAsyncCommandEvents
public function DataAsyncCommandEvents(
commandStart : DataAsyncCommandStartEventHandler,
commandFailure : DataAsyncCommandFailureEventHandler,
commandNextResult : DataAsyncCommandFetchEventHandler,
commandRead : DataAsyncCommandFetchEventHandler,
commandCancel : DataAsyncCommandCancelEventHandler,
commandEnd : DataAsyncCommandEndEventHandler
)
Parameters
- commandStart
Type: Microsoft.VisualStudio.Data.DataAsyncCommandStartEventHandler
The delegate to call when a command is starting.
- commandFailure
Type: Microsoft.VisualStudio.Data.DataAsyncCommandFailureEventHandler
The delegate to call when there is a command failure.
- commandNextResult
Type: Microsoft.VisualStudio.Data.DataAsyncCommandFetchEventHandler
The delegate to call when a command has one or more result sets available.
- commandRead
Type: Microsoft.VisualStudio.Data.DataAsyncCommandFetchEventHandler
The delegate to call when a command has one or more blocks of data available to read from a result set.
- commandCancel
Type: Microsoft.VisualStudio.Data.DataAsyncCommandCancelEventHandler
The delegate to call when a command is canceled.
- commandEnd
Type: Microsoft.VisualStudio.Data.DataAsyncCommandEndEventHandler
The delegate to call when a command has ended.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataAsyncCommandEvents Overload
Microsoft.VisualStudio.Data Namespace
DataAsyncCommandStartEventHandler
DataAsyncCommandFailureEventHandler
DataAsyncCommandCancelEventHandler