IVsDataCommand.DeriveSchema 方法

定义

重载

DeriveSchema(String)

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String, DataCommandType)

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String, DataCommandType, IVsDataParameter[])

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String, DataCommandType, IVsDataParameter[], Int32)

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String)

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

public:
 Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ DeriveSchema(System::String ^ command);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader DeriveSchema (string command);
abstract member DeriveSchema : string -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function DeriveSchema (command As String) As IVsDataReader

参数

command
String

要为其派生特定于数据源的架构的命令。

返回

IVsDataReader

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

适用于

DeriveSchema(String, DataCommandType)

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

public:
 Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ DeriveSchema(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader DeriveSchema (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType);
abstract member DeriveSchema : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function DeriveSchema (command As String, commandType As DataCommandType) As IVsDataReader

参数

command
String

要为其派生特定于数据源的架构的命令。

commandType
DataCommandType

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

返回

IVsDataReader

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

适用于

DeriveSchema(String, DataCommandType, IVsDataParameter[])

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

public:
 Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ DeriveSchema(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader DeriveSchema (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters);
abstract member DeriveSchema : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function DeriveSchema (command As String, commandType As DataCommandType, parameters As IVsDataParameter()) As IVsDataReader

参数

command
String

要为其派生特定于数据源的架构的命令。

commandType
DataCommandType

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

parameters
IVsDataParameter[]

DataParameter指定的命令类型的对象数组。 虽然这是一个输入参数,但 DDEX 提供程序仍然能够设置单个 out 和 return 值参数的属性。 但是,在派生架构时不会填充这些。

返回

IVsDataReader

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

适用于

DeriveSchema(String, DataCommandType, IVsDataParameter[], Int32)

当由类实现时,将派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

public:
 Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ DeriveSchema(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters, int commandTimeout);
public Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader DeriveSchema (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters, int commandTimeout);
abstract member DeriveSchema : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Public Function DeriveSchema (command As String, commandType As DataCommandType, parameters As IVsDataParameter(), commandTimeout As Integer) As IVsDataReader

参数

command
String

要为其派生特定于数据源的架构的命令。

commandType
DataCommandType

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

parameters
IVsDataParameter[]

DataParameter指定的命令类型的对象数组。 虽然这是一个输入参数,但 DDEX 提供程序仍然能够设置单个 out 和 return 值参数的属性。 但是,在派生架构时不会填充这些。

commandTimeout
Int32

在取消架构派生并返回到调用方之前,阻止客户端的时间长度(以秒为单位)。 值0表示无限期超时;值-1 指示提供程序默认值。

返回

IVsDataReader

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

适用于