Freigeben über


AdoDotNetConnectionSupport.ExecuteCore-Methode

Führt einen bestimmten Befehl, optional mit Parametern und Rückgabeergebnisse als IVsDataReader-Objekt aus.

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

Syntax

'Declaration
Protected Overridable Function ExecuteCore ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer _
) As IVsDataReader
protected virtual IVsDataReader ExecuteCore(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout
)
protected:
virtual IVsDataReader^ ExecuteCore(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout
)
abstract ExecuteCore : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int -> IVsDataReader  
override ExecuteCore : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int -> IVsDataReader
protected function ExecuteCore(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int
) : IVsDataReader

Parameter

  • command
    Typ: String

    Befehle, um Sie auszuführen, die auf eine Datenquelle abgestimmt ist.

  • commandTimeout
    Typ: Int32

    Zeit, in Sekunden, bevor der Client dem Abbrechen der Schemaableitung und das Zurückgeben zum Aufrufer blockieren. Der Wert Null gibt unbegrenztem Timeout an; ein Wert von -1 gibt ein Anbieterstandard an.

Rückgabewert

Typ: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Ein IVsDataReader-Objekt, das nur für Vorwärts-Recordsets, schreibgeschützten Stream aus der Datenquelle enthält.

.NET Framework-Sicherheit

Siehe auch

Referenz

AdoDotNetConnectionSupport Klasse

Microsoft.VisualStudio.Data.Framework.AdoDotNet-Namespace