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
'宣言
Public Sub New ( _
commandStart As DataAsyncCommandStartEventHandler, _
commandFailure As DataAsyncCommandFailureEventHandler, _
commandCancel As DataAsyncCommandCancelEventHandler, _
commandEnd As DataAsyncCommandEndEventHandler _
)
'使用
Dim commandStart As DataAsyncCommandStartEventHandler
Dim commandFailure As DataAsyncCommandFailureEventHandler
Dim commandCancel As DataAsyncCommandCancelEventHandler
Dim commandEnd As DataAsyncCommandEndEventHandler
Dim instance As New DataAsyncCommandEvents(commandStart, _
commandFailure, commandCancel, commandEnd)
public DataAsyncCommandEvents(
DataAsyncCommandStartEventHandler commandStart,
DataAsyncCommandFailureEventHandler commandFailure,
DataAsyncCommandCancelEventHandler commandCancel,
DataAsyncCommandEndEventHandler commandEnd
)
public:
DataAsyncCommandEvents(
DataAsyncCommandStartEventHandler^ commandStart,
DataAsyncCommandFailureEventHandler^ commandFailure,
DataAsyncCommandCancelEventHandler^ commandCancel,
DataAsyncCommandEndEventHandler^ commandEnd
)
public function DataAsyncCommandEvents(
commandStart : DataAsyncCommandStartEventHandler,
commandFailure : DataAsyncCommandFailureEventHandler,
commandCancel : DataAsyncCommandCancelEventHandler,
commandEnd : DataAsyncCommandEndEventHandler
)
Parameters
commandStart
Type: Microsoft.VisualStudio.Data.DataAsyncCommandStartEventHandlerThe delegate to call when a command is starting.
commandFailure
Type: Microsoft.VisualStudio.Data.DataAsyncCommandFailureEventHandlerThe delegate to call when there is a command failure.
commandCancel
Type: Microsoft.VisualStudio.Data.DataAsyncCommandCancelEventHandlerThe delegate to call when a command is canceled.
commandEnd
Type: Microsoft.VisualStudio.Data.DataAsyncCommandEndEventHandlerThe delegate to call when a command has ended.
Permissions
- 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 Members
DataAsyncCommandEvents Overload
Microsoft.VisualStudio.Data Namespace
DataAsyncCommandStartEventHandler
DataAsyncCommandFailureEventHandler