AdoDotNetConnectionSupport.DeriveParameters Method

Derives parameters that can be specified for a given command

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

Syntax

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

returnValue = instance.DeriveParameters(command, _
    commandType, commandTimeout)
public virtual DataParameter[] DeriveParameters(
    string command,
    int commandType,
    int commandTimeout
)
public:
virtual array<DataParameter^>^ DeriveParameters(
    String^ command, 
    int commandType, 
    int commandTimeout
)
public function DeriveParameters(
    command : String, 
    commandType : int, 
    commandTimeout : int
) : DataParameter[]

Parameters

  • command
    Type: System.String

    A data-source-specific command from which to derive parameters.

  • commandType
    Type: System.Int32

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

  • commandTimeout
    Type: System.Int32

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

Return Value

Type: []

Returns an array of DataParameter objects, each one representing a parameter derived from the command.

Remarks

Once the instances of the derived parameter objects are retrieved the client owns them and can modify their values as needed; the client will then pass these values to an Execute or ExecuteWithoutResults calls.

Permissions

See Also

Reference

AdoDotNetConnectionSupport Class

AdoDotNetConnectionSupport Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace