System.Data.OleDb Namespace OleDbParameter Class
Sets or retrieves the direction of the parameter.
Script |
OleDbParameter.Direction [ = enumValue ] |
The property is read/write with a default value of Input.
IDataParameter.Direction
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.
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;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", OleDbType.VarChar, 100 )
myParam.Direction = ParameterDirection.Output
End Sub |
|
C# |
VB |
OleDbParameter Members