次の方法で共有


DataCommand.ExecuteWithoutResults Method

Definition

Overloads

ExecuteWithoutResults(String)

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

ExecuteWithoutResults(String, DataCommandType)

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

ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[])

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

ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[], Int32)

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

ExecuteWithoutResults(String)

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

public:
 virtual int ExecuteWithoutResults(System::String ^ command);
public int ExecuteWithoutResults (string command);
abstract member ExecuteWithoutResults : string -> int
override this.ExecuteWithoutResults : string -> int
Public Function ExecuteWithoutResults (command As String) As Integer

Parameters

command
String

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

Returns

A DDEX provider–specific integer status code.

Implements

Exceptions

The command parameter is null.

Applies to

ExecuteWithoutResults(String, DataCommandType)

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

public:
 virtual int ExecuteWithoutResults(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType);
public int ExecuteWithoutResults (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType);
abstract member ExecuteWithoutResults : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType -> int
override this.ExecuteWithoutResults : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType -> int
Public Function ExecuteWithoutResults (command As String, commandType As DataCommandType) As Integer

Parameters

command
String

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

commandType
DataCommandType

The type of the command that specifies how to interpret the contents of the command parameter. The command type could either be a value from the DataCommandType enumeration or a custom command type defined by a provider, which can be passed in by forcing a cast from an integer to the DataCommandType enumeration.

Returns

A DDEX provider–specific integer status code.

Implements

Exceptions

The command parameter is null.

Applies to

ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[])

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, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters);
public int ExecuteWithoutResults (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters);
abstract member ExecuteWithoutResults : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] -> int
override this.ExecuteWithoutResults : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] -> int
Public Function ExecuteWithoutResults (command As String, commandType As DataCommandType, parameters As IVsDataParameter()) As Integer

Parameters

command
String

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

commandType
DataCommandType

The type of the command that specifies how to interpret the contents of the command parameter. The command type could either be a value from the DataCommandType enumeration or a custom command type defined by a provider, which can be passed in by forcing a cast from an integer to the DataCommandType enumeration.

parameters
IVsDataParameter[]

An array of IVsDataParameter objects representing the command parameters for the specified command type.

Returns

A DDEX provider–specific integer status code.

Implements

Exceptions

The command parameter is null.

Applies to

ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[], Int32)

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, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters, int commandTimeout);
public virtual int ExecuteWithoutResults (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters, int commandTimeout);
abstract member ExecuteWithoutResults : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> int
override this.ExecuteWithoutResults : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> int
Public Overridable Function ExecuteWithoutResults (command As String, commandType As DataCommandType, parameters As IVsDataParameter(), commandTimeout As Integer) As Integer

Parameters

command
String

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

commandType
DataCommandType

The type of the command that specifies how to interpret the contents of the command parameter. The command type could either be a value from the DataCommandType enumeration or a custom command type defined by a provider, which can be passed in by forcing a cast from an integer to the DataCommandType enumeration.

parameters
IVsDataParameter[]

An array of IVsDataParameter objects representing the command parameters for the specified command type.

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

A DDEX provider–specific integer status code.

Implements

Exceptions

The command parameter is null.

The commandTimeout parameter is less than -1.

Applies to