共用方式為


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

當由類別實作、執行指定的命令並傳回唯讀的結果。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function Execute ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer _
) As IVsDataReader
IVsDataReader Execute(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout
)
IVsDataReader^ Execute(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout
)
abstract Execute : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int -> IVsDataReader 
function Execute(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int
) : IVsDataReader

參數

  • command
    型別:System.String
    物件是針對資料來源執行的命令。
  • commandTimeout
    型別:System.Int32
    時間,以秒為單位),在執行取消和傳回之前封鎖用戶端給呼叫端。值為 0 表示無限逾時;值為-1 表示預設提供者。

傳回值

型別:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 物件,提供資料來源的轉送,唯讀資料流。

.NET Framework 安全性

請參閱

參考

IVsDataCommand 介面

Execute 多載

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