Metodo IVsDataAsyncCommand.PrepareAsync
Se implementata da una classe, prepara, in modo asincrono, il comando specificato essere eseguito sull'origine dati, il comando può essere eseguito più volte, con parametri variabili.
Spazio dei nomi: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Sintassi
'Dichiarazione
Sub PrepareAsync ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer, _
userState As Object _
)
void PrepareAsync(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout,
Object userState
)
void PrepareAsync(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout,
Object^ userState
)
abstract PrepareAsync :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int *
userState:Object -> unit
function PrepareAsync(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int,
userState : Object
)
Parametri
command
Tipo: StringComando da eseguire.
commandType
Tipo: Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandTypeUn valore dall'enumerazione DataCommandType che rappresenta il tipo di comando per il comando indicato, specificando come interpretare il contenuto del parametro command.
parameters
Tipo: array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]Un elenco di parametri da passare al comando.
commandTimeout
Tipo: Int32Quantità di tempo, in secondi, prima della quale il comando scade.
userState
Tipo: ObjectL'oggetto su cui questo metodo chiama che supportano come il comando avanza.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Vedere anche
Riferimenti
IVsDataAsyncCommand Interfaccia
Spazio dei nomi Microsoft.VisualStudio.Data.Services.SupportEntities