准备在数据源中指定的命令执行;命令可然后执行多次,使用不同的参数。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Function Prepare ( _
command As String _
) As String
public string Prepare(
string command
)
public:
virtual String^ Prepare(
String^ command
) sealed
abstract Prepare :
command:string -> string
override Prepare :
command:string -> string
public final function Prepare(
command : String
) : String
参数
- command
类型:System.String
特定于数据源的命令执行。
返回值
类型:System.String
使用命令类型 Prepared,稍后可传递给 Execute 或 ExecuteWithoutResults 方法准备的命令的标识符。
实现
IVsDataCommand.Prepare(String)
异常
异常 | 条件 |
---|---|
ArgumentNullException | command 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
发生的其他异常指示该测试用例准备好用于对一个提供程序指定的原因而失败。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。