Delen via


AdoDotNetConnectionSupport.ExecuteWithoutResults Method

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

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Overridable Function ExecuteWithoutResults ( _
    command As String, _
    commandType As Integer, _
    parameters As DataParameter(), _
    commandTimeout As Integer _
) As Integer
public virtual int ExecuteWithoutResults(
    string command,
    int commandType,
    DataParameter[] parameters,
    int commandTimeout
)
public:
virtual int ExecuteWithoutResults(
    String^ command, 
    int commandType, 
    array<DataParameter^>^ parameters, 
    int commandTimeout
)
abstract ExecuteWithoutResults : 
        command:string * 
        commandType:int * 
        parameters:DataParameter[] * 
        commandTimeout:int -> int  
override ExecuteWithoutResults : 
        command:string * 
        commandType:int * 
        parameters:DataParameter[] * 
        commandTimeout:int -> int
public function ExecuteWithoutResults(
    command : String, 
    commandType : int, 
    parameters : DataParameter[], 
    commandTimeout : int
) : int

Parameters

  • command
    Type: System.String

    Data-source-specific command to execute.

  • commandType
    Type: System.Int32

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

  • commandTimeout
    Type: System.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.

Return Value

Type: System.Int32
Returns a data-provider-specific integer status code.

Remarks

In most cases, the outcome of the call to this method will be an indication of the number of rows affected.

Out and return value parameters may still be set using this call. They are not considered a part of the results.

.NET Framework Security

See Also

Reference

AdoDotNetConnectionSupport Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace