Udostępnij za pośrednictwem


AdoDotNetConnectionSupport.ExecuteCore Method

Definition

Executes a specified command, optionally with parameters, and returns results as an IVsDataReader object.

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

Parameters

command
String

Command to execute that is specific to the data source.

commandType
DataCommandType

Type of the indicated command, specifying how to interpret the contents of the command parameter.

parameters
IVsDataParameter[]

Array of DataParameter 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 IVsDataReader object, which provides a forward-only, read-only stream from the data source.

Applies to