dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleParameter Class / OracleParameter Constructor / OracleParameter Constructor(String,OracleDbType,ParameterDirection)
The name of the parameter.
One of the OracleDbType values.
Specifies whether the parameter is input, output, both, or it is the return value.
Example

In This Topic
    OracleParameter Constructor(String,OracleDbType,ParameterDirection)
    In This Topic
    Initializes a new instance of the OracleParameter class with the parameter name, data type, and parameter direction.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal parameterName As String, _
       ByVal dbType As OracleDbType, _
       ByVal direction As ParameterDirection _
    )
    public OracleParameter( 
       string parameterName,
       OracleDbType dbType,
       ParameterDirection direction
    )

    Parameters

    parameterName
    The name of the parameter.
    dbType
    One of the OracleDbType values.
    direction
    Specifies whether the parameter is input, output, both, or it is the return value.
    Example
    The following example creates a new OracleParameter and sets some of its properties.
    public void CreateOracleParameter()
    {
      OracleParameter myParameter = new OracleParameter("DName", OracleDbType.VarChar);
      myParameter.Direction = ParameterDirection.Input;
      myParameter.Size = 15;
    }
    Public Sub CreateOracleParameter()
        Dim myParameter As New OracleParameter("DName", OracleDbType.VarChar)
        myParameter.Direction = ParameterDirection.Input
        myParameter.Size = 15
    End Sub
    See Also