dotConnect Universal Documentation
Devart.Common Namespace / DbParameterBase Class / Direction Property

In This Topic
Direction Property (DbParameterBase)
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
 

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 Devart.Common.DbCommand 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.

See Also