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
- commandStart
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandStartEventHandler
O representante para chamar quando um comando está inicial.
- commandFailure
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandFailureEventHandler
O representante para chamar quando há uma falha de comando.
- commandNextResult
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandFetchEventHandler
O representante para chamar quando um comando tem um ou mais conjuntos de resultados disponíveis.
- commandRead
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandFetchEventHandler
O representante para chamar quando um comando tem um ou vários blocos de dados disponíveis para ler um conjunto de resultados.
- commandCancel
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandCancelEventHandler
O representante para chamar quando um comando é cancelado.
- commandEnd
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandEndEventHandler
O representante para chamar quando um comando terminou.
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiáveis.
Consulte também
Referência
Sobrecargas DataAsyncCommandEvents
Namespace Microsoft.VisualStudio.Data
DataAsyncCommandStartEventHandler
DataAsyncCommandFailureEventHandler
DataAsyncCommandCancelEventHandler