AdoDotNetConnectionSupport.ExecuteWithoutResultsCore Method

Executes a specified command, optionally with parameters. Does not return any query results.

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

Syntax

'宣言
Protected Overridable Function ExecuteWithoutResultsCore ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer _
) As Integer
'使用
Dim command As String
Dim commandType As DataCommandType
Dim parameters As IVsDataParameter()
Dim commandTimeout As Integer
Dim returnValue As Integer

returnValue = Me.ExecuteWithoutResultsCore(command, _
    commandType, parameters, commandTimeout)
protected virtual int ExecuteWithoutResultsCore(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout
)
protected:
virtual int ExecuteWithoutResultsCore(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout
)
protected function ExecuteWithoutResultsCore(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int
) : int

Parameters

  • command
    Type: System.String

    Command to execute that is specific to the data source.

  • parameters
    Type: []

    Array of DataParameter objects for the specified command type.

  • 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 time-out; a value of -1 indicates a provider default.

Return Value

Type: System.Int32

The number of rows affected.

Permissions

See Also

Reference

AdoDotNetConnectionSupport Class

AdoDotNetConnectionSupport Members

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace

DataCommandType