IVsDataCommand.Execute 方法 (String, DataCommandType)

当实现由选件类,执行一个指定的命令并返回只读的结果。

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

语法

声明
Function Execute ( _
    command As String, _
    commandType As DataCommandType _
) As IVsDataReader
IVsDataReader Execute(
    string command,
    DataCommandType commandType
)
IVsDataReader^ Execute(
    String^ command, 
    DataCommandType commandType
)
abstract Execute : 
        command:string * 
        commandType:DataCommandType -> IVsDataReader 
function Execute(
    command : String, 
    commandType : DataCommandType
) : IVsDataReader

参数

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

返回值

类型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 对象,提供数据源中的一个前进,只读流。

.NET Framework 安全性

请参见

参考

IVsDataCommand 接口

Execute 重载

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