AdoDotNetConnectionSupport.Execute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes a specified command, optionally with parameters, and returns results as a DataReader object.
public:
virtual Microsoft::VisualStudio::Data::DataReader ^ Execute(System::String ^ command, int commandType, cli::array <Microsoft::VisualStudio::Data::DataParameter ^> ^ parameters, int commandTimeout);
public virtual Microsoft.VisualStudio.Data.DataReader Execute (string command, int commandType, Microsoft.VisualStudio.Data.DataParameter[] parameters, int commandTimeout);
abstract member Execute : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int -> Microsoft.VisualStudio.Data.DataReader
override this.Execute : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int -> Microsoft.VisualStudio.Data.DataReader
Public Overridable Function Execute (command As String, commandType As Integer, parameters As DataParameter(), commandTimeout As Integer) As DataReader
Parameters
- command
- String
Command to execute that is specific to the data source.
- commandType
- Int32
Type of the indicated command, specifying how to interpret the contents of the command
parameter.
- parameters
- DataParameter[]
Array of DataParameter object 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 timeout; value of -1 indicates a provider default.
Returns
Returns a DataParameter object, which provides a forward-only, read-only stream from the data source.