DataCommand.DeriveParameters 方法 (String)

派生可用于特定命令指定的参数。

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

语法

声明
Public Function DeriveParameters ( _
    command As String _
) As IVsDataParameter()
public IVsDataParameter[] DeriveParameters(
    string command
)
public:
virtual array<IVsDataParameter^>^ DeriveParameters(
    String^ command
) sealed
abstract DeriveParameters : 
        command:string -> IVsDataParameter[] 
override DeriveParameters : 
        command:string -> IVsDataParameter[] 
public final function DeriveParameters(
    command : String
) : IVsDataParameter[]

参数

  • command
    类型:System.String
    的命令派生参数特定于数据源。

返回值

类型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]
IVsDataParameter 对象的数组。每个对象均表示从命令派生的参数。

实现

IVsDataCommand.DeriveParameters(String)

异常

异常 条件
ArgumentNullException

command 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

在派生的参数对象的实例检索之后,客户端拥有它们可以修改其值根据需要。客户端与命令类型设置为 Text 和相应的超时值。然后将这些值传递给 Execute 或 [M:Microsoft.VisualStudio.Data.Framework.DataCommand.ExecuteWithoutResults(System.String,T:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType,Microsoft.VisualStudio.Data.Framework.DataParameter[],System.Int32)] 方法。

说明说明

发生的其他异常指示参数派生为一个提供程序指定的原因而失败。

.NET Framework 安全性

请参见

参考

DataCommand 类

DeriveParameters 重载

Microsoft.VisualStudio.Data.Framework 命名空间

CreateParameter