AdoDotNetConnectionSupport.PrepareCore Method

Definition

Prepares the specified command on the data source to be executed; the command can be executed multiple times, with varying parameters.

protected:
 virtual System::String ^ PrepareCore(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters, int commandTimeout);
protected virtual string PrepareCore (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters, int commandTimeout);
abstract member PrepareCore : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> string
override this.PrepareCore : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> string
Protected Overridable Function PrepareCore (command As String, commandType As DataCommandType, parameters As IVsDataParameter(), commandTimeout As Integer) As String

Parameters

command
String

Command to prepare for execution.

commandType
DataCommandType

Command type for the indicated command, specifying how to interpret the contents of the command parameters.

parameters
IVsDataParameter[]

Array of IVsDataParameter objects for the specified command type.

commandTimeout
Int32

Length of time, in seconds, to block the client before canceling the schema derivation and returning to the caller. A value of zero indicates infinite time-out; a value of -1 indicates a provider default.

Returns

An identifier of the prepared command that can later be passed to the ExecuteCore(String, DataCommandType, IVsDataParameter[], Int32) or ExecuteWithoutResultsCore(String, DataCommandType, IVsDataParameter[], Int32) method.

Applies to