Partilhar via


Construtor DataAsyncCommandEvents (DataAsyncCommandStartEventHandler, DataAsyncCommandFailureEventHandler, DataAsyncCommandFetchEventHandler, DataAsyncCommandFetchEventHandler, DataAsyncCommandCancelEventHandler, DataAsyncCommandEndEventHandler)

Inicializa uma nova instância da classe de DataAsyncCommandEvents com delegados especificados.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (em Microsoft.VisualStudio.Data.dll)

Sintaxe

'Declaração
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
)

Parâmetros

Segurança do .NET Framework

Consulte também

Referência

DataAsyncCommandEvents Classe

Sobrecargas DataAsyncCommandEvents

Namespace Microsoft.VisualStudio.Data

DataAsyncCommandStartEventHandler

DataAsyncCommandFailureEventHandler

DataAsyncCommandCancelEventHandler

DataAsyncCommandEndEventHandler

DataAsyncCommandFetchEventHandler