IVsDataCommand.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.
Overloads
Execute(String, DataCommandType, IVsDataParameter[], Int32) |
When implemented by a class, executes a specified command and returns read-only results. |
Execute(String, DataCommandType, IVsDataParameter[]) |
When implemented by a class, executes a specified command and returns read-only results. |
Execute(String, DataCommandType) |
When implemented by a class, executes a specified command and returns read-only results. |
Execute(String) |
When implemented by a class, executes a specified command and returns read-only results. |
Execute(String, DataCommandType, IVsDataParameter[], Int32)
When implemented by a class, executes a specified command and returns read-only results.
public:
Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ Execute(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters, int commandTimeout);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader Execute (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters, int commandTimeout);
abstract member Execute : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function Execute (command As String, commandType As DataCommandType, parameters As IVsDataParameter(), commandTimeout As Integer) As IVsDataReader
Parameters
- command
- String
A command to execute that is specific to a data source.
- commandType
- DataCommandType
A value from the DataCommandType enumeration representing the command type for the indicated command, specifying how to interpret the contents of the command
parameter.
- parameters
- IVsDataParameter[]
An array of DataParameter objects for the specified command type. While this is an input parameter, the DDEX provider is still able to set properties on individual out and return value parameters.
- commandTimeout
- Int32
The length of time, in seconds, to block the client before canceling the execution and returning to the caller. A value of 0 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
Execute(String, DataCommandType, IVsDataParameter[])
When implemented by a class, executes a specified command and returns read-only results.
public:
Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ Execute(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader Execute (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters);
abstract member Execute : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function Execute (command As String, commandType As DataCommandType, parameters As IVsDataParameter()) As IVsDataReader
Parameters
- command
- String
A command to execute that is specific to a data source.
- commandType
- DataCommandType
A value from the DataCommandType enumeration representing the command type for the indicated command, specifying how to interpret the contents of the command
parameter.
- parameters
- IVsDataParameter[]
An array of DataParameter objects for the specified command type. While this is an input parameter, the DDEX provider is still able to set properties on individual out and return value parameters.
Returns
An IVsDataReader object, which provides a forward-only, read-only stream from the data source.
Applies to
Execute(String, DataCommandType)
When implemented by a class, executes a specified command and returns read-only results.
public:
Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ Execute(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader Execute (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType);
abstract member Execute : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function Execute (command As String, commandType As DataCommandType) As IVsDataReader
Parameters
- command
- String
A command to execute that is specific to a data source.
- commandType
- DataCommandType
A value from the DataCommandType enumeration representing the command type for the indicated command, specifying how to interpret the contents of the command
parameter.
Returns
An IVsDataReader object, which provides a forward-only, read-only stream from the data source.
Applies to
Execute(String)
When implemented by a class, executes a specified command and returns read-only results.
public:
Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ Execute(System::String ^ command);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader Execute (string command);
abstract member Execute : string -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function Execute (command As String) As IVsDataReader
Parameters
- command
- String
A command to execute that is specific to a data source.
Returns
An IVsDataReader object, which provides a forward-only, read-only stream from the data source.