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 virtual string OnPrepare(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout
)

Parameters

  • command
    Type: System.String
    The command for which the schema is derived.
  • 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 or ExecuteWithoutResults methods by using the command type Prepared.

.NET Framework Security

See Also

Reference

DataAsyncCommand Class

Microsoft.VisualStudio.Data.Framework Namespace