共用方式為


IVsDataCommand.Prepare 方法 (String, DataCommandType)

當由類別實作,以便在資料來源中指定的順序執行,這個命令可能會執行多次,以變更的參數。

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

語法

'宣告
Function Prepare ( _
    command As String, _
    commandType As DataCommandType _
) As String
string Prepare(
    string command,
    DataCommandType commandType
)
String^ Prepare(
    String^ command, 
    DataCommandType commandType
)
abstract Prepare : 
        command:string * 
        commandType:DataCommandType -> string
function Prepare(
    command : String, 
    commandType : DataCommandType
) : String

參數

  • command
    類型:String

    物件是針對資料來源執行的命令。

傳回值

類型:String
一個準備好的命令的識別項,之後可傳遞給 ExecuteExecuteWithoutResults 方法,使用命令類型 Prepared.

.NET Framework 安全性

請參閱

參考

IVsDataCommand 介面

Prepare 多載

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