Share via


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

'Declaration
Public Overridable Function DeriveParameters ( _
    command As String, _
    commandType As Integer, _
    commandTimeout As Integer _
) As DataParameter()
public virtual DataParameter[] DeriveParameters(
    string command,
    int commandType,
    int commandTimeout
)
public:
virtual array<DataParameter^>^ DeriveParameters(
    String^ command, 
    int commandType, 
    int commandTimeout
)
abstract DeriveParameters : 
        command:string * 
        commandType:int * 
        commandTimeout:int -> DataParameter[] 
override DeriveParameters : 
        command:string * 
        commandType:int * 
        commandTimeout:int -> DataParameter[] 
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: array<Microsoft.VisualStudio.Data.DataParameter[]
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.

.NET Framework Security

See Also

Reference

AdoDotNetConnectionSupport Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace