DataCommand.ExecuteWithoutResults 方法 (String, DataCommandType)

执行命令,但未请求结果,而是返回指示调用的结果整数。

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

语法

声明
Public Function ExecuteWithoutResults ( _
    command As String, _
    commandType As DataCommandType _
) As Integer
public int ExecuteWithoutResults(
    string command,
    DataCommandType commandType
)
public:
virtual int ExecuteWithoutResults(
    String^ command, 
    DataCommandType commandType
) sealed
abstract ExecuteWithoutResults : 
        command:string * 
        commandType:DataCommandType -> int 
override ExecuteWithoutResults : 
        command:string * 
        commandType:DataCommandType -> int 
public final function ExecuteWithoutResults(
    command : String, 
    commandType : DataCommandType
) : int

参数

  • command
    类型:System.String
    特定于数据源的命令执行。

返回值

类型:System.Int32
DDEX提供程序特定的整数状态代码。

实现

IVsDataCommand.ExecuteWithoutResults(String, DataCommandType)

异常

异常 条件
ArgumentNullException

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

备注

在许多情况下,调用的结果传递给此方法将指明受影响的行数。

说明说明

发生的其他异常指示象对一个提供程序指定的原因而失败。

.NET Framework 安全性

请参见

参考

DataCommand 类

ExecuteWithoutResults 重载

Microsoft.VisualStudio.Data.Framework 命名空间