DataAsyncCommand.OnPrepare Method

Dispatches the asynchronous prepare operation to the synchronous Prepare method call.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'宣言
Protected Overridable Function OnPrepare ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer _
) As String
'使用
Dim command As String
Dim commandType As DataCommandType
Dim parameters As IVsDataParameter()
Dim commandTimeout As Integer
Dim returnValue As String

returnValue = Me.OnPrepare(command, _
    commandType, parameters, commandTimeout)
protected virtual string OnPrepare(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout
)
protected:
virtual String^ OnPrepare(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout
)
protected function OnPrepare(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int
) : String

Parameters

  • command
    Type: System.String

    The command for which the schema is derived.

  • parameters
    Type: []

    A list of parameters to pass with the command.

  • commandTimeout
    Type: System.Int32

    Amount of time, in seconds, before which the command times out.

Return Value

Type: System.String

An identifier of the prepared command that can later be passed to the Execute(String, DataCommandType, [], Int32) or ExecuteWithoutResults(String, DataCommandType, [], Int32) methods by using the command type Prepared.

Permissions

See Also

Reference

DataAsyncCommand Class

DataAsyncCommand Members

Microsoft.VisualStudio.Data.Framework Namespace