DataAsyncCommand.OnDeriveSchema 方法

定义

向同步方法调用调度异步派生架构操作 DeriveSchema(String, DataCommandType, IVsDataParameter[], Int32)

protected:
 virtual Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ OnDeriveSchema(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters, int commandTimeout);
protected virtual Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader OnDeriveSchema (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters, int commandTimeout);
abstract member OnDeriveSchema : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
override this.OnDeriveSchema : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Protected Overridable Function OnDeriveSchema (command As String, commandType As DataCommandType, parameters As IVsDataParameter(), commandTimeout As Integer) As IVsDataReader

参数

command
String

为其派生架构的命令。

commandType
DataCommandType

一个来自枚举的值,该值 DataCommandType 表示指定命令的命令类型。 值指定如何解释参数的内容 command

parameters
IVsDataParameter[]

要与命令一起传递的参数的列表。

commandTimeout
Int32

命令超时之前的时间量(以秒为单位)。

返回

IVsDataReader

一个 IVsDataReader 对象。 此对象提供一个只进只读数据流,该数据流描述了在执行指定命令时返回的读取器对象的项目和块(即架构)的布局。

适用于