AdoDotNetConnectionSupport.ExecuteCore 方法

执行指定的命令,可选择带有参数,并返回结果。IVsDataReader 对象。

命名空间:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
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

参数

  • command
    类型:String

    命令执行特定于数据源。

  • commandTimeout
    类型:Int32

    时间长度,为,在移除架构派生并返回之前阻止客户给调用方。 值为零将无限超时;值 -1 指示为默认提供程序。

返回值

类型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 对象,从数据源提供的仅,只读的流。

.NET Framework 安全性

请参阅

参考

AdoDotNetConnectionSupport 类

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空间