AdoDotNetConnectionSupport.Prepare Method

Prepares the specified command on the data source to be executed; the command may be executed multiple times, with varying parameters.

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

Syntax

'宣言
Public Overridable Function Prepare ( _
    command As String, _
    commandType As Integer, _
    commandTimeout As Integer _
) As String
'使用
Dim instance As AdoDotNetConnectionSupport
Dim command As String
Dim commandType As Integer
Dim commandTimeout As Integer
Dim returnValue As String

returnValue = instance.Prepare(command, _
    commandType, commandTimeout)
public virtual string Prepare(
    string command,
    int commandType,
    int commandTimeout
)
public:
virtual String^ Prepare(
    String^ command, 
    int commandType, 
    int commandTimeout
)
public function Prepare(
    command : String, 
    commandType : int, 
    commandTimeout : int
) : String

Parameters

  • commandType
    Type: System.Int32

    Command type for the indicated command, specifying how to interpret the contents of the command parameter.

  • commandTimeout
    Type: System.Int32

    Length of time, in seconds, to block the client before canceling the schema derivation and returning to the caller. A value of zero indicates infinite timeout; value of -1 indicates a provider default.

Return Value

Type: System.String

Returns an identifier of the prepared command that can later be passed to the Execute or ExecuteWithoutResults methods.

Permissions

See Also

Reference

AdoDotNetConnectionSupport Class

AdoDotNetConnectionSupport Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace