共用方式為


AdoDotNetConnectionSupport.Prepare 方法

準備資料來源之指定的順序執行,這個命令會執行多次,以變更的參數。

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

語法

'宣告
Public Overridable Function Prepare ( _
    command As String, _
    commandType As Integer, _
    commandTimeout As Integer _
) As String
public virtual string Prepare(
    string command,
    int commandType,
    int commandTimeout
)
public:
virtual String^ Prepare(
    String^ command, 
    int commandType, 
    int commandTimeout
)
abstract Prepare : 
        command:string * 
        commandType:int * 
        commandTimeout:int -> string  
override Prepare : 
        command:string * 
        commandType:int * 
        commandTimeout:int -> string
public function Prepare(
    command : String, 
    commandType : int, 
    commandTimeout : int
) : String

參數

  • command
    類型:String

    命令來執行的準備工作。

  • commandType
    類型:Int32

    命令所指示的順序的型別,指定如何解譯 command 參數的內容。

  • commandTimeout
    類型:Int32

    時間,以秒為單位),在移除結構描述衍生並傳回之前封鎖用戶端給呼叫端。 零值表示無限逾時;值為-1 表示預設提供者。

傳回值

類型:String
傳回可在之後傳遞給或方法 ExecuteExecuteWithoutResults 準備的命令識別項。

.NET Framework 安全性

請參閱

參考

AdoDotNetConnectionSupport 類別

Microsoft.VisualStudio.Data.AdoDotNet 命名空間