IVsDataCommand.DeriveSchema 方法 (String, DataCommandType, array<IVsDataParameter )

当实现由选件类,从指定的命令派生返回的架构。 对象的数组。

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

语法

声明
Function DeriveSchema ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter() _
) As IVsDataReader
IVsDataReader DeriveSchema(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters
)
IVsDataReader^ DeriveSchema(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters
)
abstract DeriveSchema : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] -> IVsDataReader 
function DeriveSchema(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[]
) : IVsDataReader

参数

  • command
    类型:System.String
    一个命令可以派生对数据源的特定于架构的。

返回值

类型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 对象。此对象用于读取器对象提供描述项目格式并阻止,即,架构的前向,只读数据流,返回在执行指定的命令。

备注

对象的数组。要返回的各个结果,当您执行命令,应具有在数据读取器的结果。描述项目将返回这些结果中的每一个都应当包含块,则在执行命令时。该声明应包含以下项:

  • 名称(字符串):项目的名称。

  • 序号(、):项的位置。

  • UserDataType (字符串):项目(例如,“myType”)的用户数据类型。

  • 对象。

  • ProviderDataType (、):项目(例如,System.Data.DbType.StringFixedLength)的提供程序数据类型。

  • FrameworkDataType (类型):项目(例如,System.Int32)的framework数据类型。

  • 长度(、):项目的最大长度,如果适用)。

  • 精度(、):项目的精度,如果适用)。

  • 缩放(、):项目的缩放,如果适用)。

  • 可以为null (布尔值):项目的nullability。

提供程序不支持的那些项目(例如,数据类型的某种形式)应存在,但设置为 nullnull 引用(在 Visual Basic 中为 Nothing)。

说明说明

对象。

.NET Framework 安全性

请参见

参考

IVsDataCommand 接口

DeriveSchema 重载

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间