Delegato DataAsyncCommandEndEventHandler
Rappresenta il metodo che viene chiamato quando un comando asincrono.
Spazio dei nomi: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Sintassi
'Dichiarazione
Public Delegate Sub DataAsyncCommandEndEventHandler ( _
result As Object _
)
public delegate void DataAsyncCommandEndEventHandler(
Object result
)
public delegate void DataAsyncCommandEndEventHandler(
Object^ result
)
type DataAsyncCommandEndEventHandler =
delegate of
result:Object -> unit
JScript non supporta i delegati.
Parametri
- result
Tipo: System.Object
Il valore restituito dal comando.
Note
Questo delegato viene chiamato quando una chiamata asincrona eseguita a un oggetto DataAsyncCommand ha completato l'esecuzione.
Il risultato è sempre uguale al valore restituito per il metodo sincrono equivalente, come segue:
Il metodo AsyncPrepare restituisce un oggetto String
Il metodo AsyncDeriveParameters restituisce un oggetto DataParameter.
Il metodo AsyncDeriveSchema restituisce un oggetto DataReader.
Il metodo AsyncExecuterestituisce un oggetto DataReader.
Il metodo AsyncExecuteWithoutResults restituisce un oggetto Int32.