asp.net.ph

OleDbParameter.Direction Property

System.Data.OleDb Namespace   OleDbParameter Class


Sets or retrieves the direction of the parameter.

Syntax


Script OleDbParameter.Direction [ = enumValue ]

Property Value


enumValue One of the ParameterDirection values.

The property is read/write with a default value of Input.

Implements

IDataParameter.Direction

Exceptions


Exception Type Condition
ArgumentException The property was not set to a valid ParameterDirection.

Remarks

Use the Direction property to specify or determine whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.

After the last row from the last resultset is read, Output, InputOut, and ReturnValue parameters are updated. If the ParameterDirection is Output, and execution of the associated OleDbCommand does not return a value, the OleDbParameter contains a null value.

Example

The following example initializes an OleDbParameter and sets some of its properties.

public void CreateOleDbParameter ( ) {
   OleDbParameter myParam = new OleDbParameter ( "Description", OleDbType.VarChar, 100 );
   myParam.Direction = ParameterDirection.Output;
}
  C# VB

See Also

OleDbParameter Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph