DataAsyncCommandEvents (Constructor) (DataAsyncCommandStartEventHandler, DataAsyncCommandFailureEventHandler, DataAsyncCommandFetchEventHandler, DataAsyncCommandFetchEventHandler, DataAsyncCommandCancelEventHandler, DataAsyncCommandEndEventHandler)
Inicializa una nueva instancia de la clase de DataAsyncCommandEvents con delegados especificados.
Espacio de nombres: Microsoft.VisualStudio.Data
Ensamblado: Microsoft.VisualStudio.Data (en Microsoft.VisualStudio.Data.dll)
Sintaxis
'Declaración
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
El delegado para llamar a un comando se está iniciando.
- commandFailure
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandFailureEventHandler
El delegado para llamar cuando hay un error del comando.
- commandNextResult
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandFetchEventHandler
El delegado para llamar a un comando tiene uno o varios conjuntos de resultados disponibles.
- commandRead
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandFetchEventHandler
El delegado para llamar a un comando tiene uno o varios bloques de datos disponible para leer un conjunto de resultados.
- commandCancel
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandCancelEventHandler
El delegado para llamar a un comando se cancela.
- commandEnd
Tipo: Microsoft.VisualStudio.Data.DataAsyncCommandEndEventHandler
El delegado para llamar a un comando ha finalizado.
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
DataAsyncCommandEvents (Sobrecarga)
Microsoft.VisualStudio.Data (Espacio de nombres)
DataAsyncCommandStartEventHandler
DataAsyncCommandFailureEventHandler
DataAsyncCommandCancelEventHandler