This method of the Parameter class indicates whether the Parameter represents an input parameter, an output parameter, or both, or if the parameter is the return value from a stored procedure.
The associated setDirection method specifies how a parameter is passed to or from a procedure. The ParameterDirection field is read/write, which allows you to work with providers that don't return this information. ParameterDirection being read/write also allows you to set parameter information when you don't want ADO to make an extra call to the provider to retrieve parameter information.
Not all providers can determine the direction of parameters in their stored procedures. In these cases, you must use setDirection before you execute the query.
public int getDirection();
public void setDirection(int dir);
Sets or returns a ParameterDirection value.
dir | One of the ParameterDirection values. |