DataAsyncCommandEvents Constructor (DataAsyncCommandStartEventHandler, DataAsyncCommandFailureEventHandler, 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, _
commandCancel As DataAsyncCommandCancelEventHandler, _
commandEnd As DataAsyncCommandEndEventHandler _
)
public DataAsyncCommandEvents(
DataAsyncCommandStartEventHandler commandStart,
DataAsyncCommandFailureEventHandler commandFailure,
DataAsyncCommandCancelEventHandler commandCancel,
DataAsyncCommandEndEventHandler commandEnd
)
public:
DataAsyncCommandEvents(
DataAsyncCommandStartEventHandler^ commandStart,
DataAsyncCommandFailureEventHandler^ commandFailure,
DataAsyncCommandCancelEventHandler^ commandCancel,
DataAsyncCommandEndEventHandler^ commandEnd
)
new :
commandStart:DataAsyncCommandStartEventHandler *
commandFailure:DataAsyncCommandFailureEventHandler *
commandCancel:DataAsyncCommandCancelEventHandler *
commandEnd:DataAsyncCommandEndEventHandler -> DataAsyncCommandEvents
public function DataAsyncCommandEvents(
commandStart : DataAsyncCommandStartEventHandler,
commandFailure : DataAsyncCommandFailureEventHandler,
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.
- 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