DataCommand.ExecuteWithoutResults Method

Definition

Executes a command, optionally with parameters, but does not request results, instead returning an integer indicating the outcome of the call.

public:
 virtual int ExecuteWithoutResults(System::String ^ command, int commandType, cli::array <Microsoft::VisualStudio::Data::DataParameter ^> ^ parameters, int commandTimeout);
public virtual int ExecuteWithoutResults (string command, int commandType, Microsoft.VisualStudio.Data.DataParameter[] parameters, int commandTimeout);
abstract member ExecuteWithoutResults : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int -> int
override this.ExecuteWithoutResults : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int -> int
Public Overridable Function ExecuteWithoutResults (command As String, commandType As Integer, parameters As DataParameter(), commandTimeout As Integer) As Integer

Parameters

command
String

A command to execute that is specific to a data source.

commandType
Int32

The command type for the indicated command, specifying how to interpret the contents of the command parameter.

parameters
DataParameter[]

An array of DataParameter objects for the specified command type. While this is an input parameter, the 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 timeout; a value of -1 indicates a provider default.

Returns

Returns a DDEX provider specific integer status code.

Exceptions

The command or asyncCommandEvents are null.

The commandType specifies an invalid type.

The commandTimeout is less than -1.

The provider does not support this method.

Applies to