dotConnect for MySQL Documentation
Devart.Common Namespace / DbParameterBase Class / Direction Property

In This Topic
    Direction Property
    In This Topic
    Gets or sets a value indicating whether the parameter is input-only, output-only, or bidirectional parameter.
    Syntax
    'Declaration
     
    Public Overrides Property Direction As ParameterDirection
    public override ParameterDirection Direction {get; set;}

    Property Value

    One of the System.Data.ParameterDirection values. The default value is Input.
    Remarks

    If the System.Data.ParameterDirection is Output, and execution of the associated DbCommandBase does not return a value, the DbParameterBase will contain a null value. Null values are handled using the System.DBNull class.

    After the last row from the last result set is read, the Output, InputOut, and ReturnValue parameters are updated.

    Output parameters are supported for stored procedures only.

    When executing stored procedures you have to create Devart.Common.DbParameter with Devart.Common.DbParameter.Direction set to ReturnValue or set ParameterCheck property to true.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also