OracleParameter Constructor(String,OracleDbType,Int32,ParameterDirection,Boolean,Byte,Byte,String,DataRowVersion,Boolean,Object,Int32,String)
Initializes a new instance of the
OracleParameter class with the parameter name, data type, width, source column name, parameter direction, numeric precision, and other properties.
public OracleParameter(
string ,
OracleDbType ,
int ,
ParameterDirection ,
bool ,
byte ,
byte ,
string sourceColumn,
DataRowVersion ,
bool sourceColumnNullMapping,
object ,
int ,
string
)
'Declaration
Public Function New( _
ByVal As String, _
ByVal As OracleDbType, _
ByVal As Integer, _
ByVal As ParameterDirection, _
ByVal As Boolean, _
ByVal As Byte, _
ByVal As Byte, _
ByVal sourceColumn As String, _
ByVal As DataRowVersion, _
ByVal sourceColumnNullMapping As Boolean, _
ByVal As Object, _
ByVal As Integer, _
ByVal As String _
)
Parameters
- parameterName
- The name of the parameter.
- dbType
- One of the OracleDbType values.
- size
- The maximum size, in bytes, of the data within the column.
- direction
- One of the System.Data.ParameterDirection values.
- isNullable
- true if the value of the field can be null; otherwise, false.
- precision
- The total number of digits to the left and right of the decimal point to which Devart.Common.DbParameterBase.Value is resolved.
- scale
- The total number of decimal places to which Devart.Common.DbParameterBase.Value is resolved.
- sourceColumn
- The name of the source column.
- sourceVersion
- One of the System.Data.DataRowVersion values.
- sourceColumnNullMapping
- Specifies whether the source column is nullable.
- value
- An Object that is the value of the OracleParameter.
- arrayLength
- A length of the DML array or PL/SQL table.
- objectTypeName
- String representing a name for the Oracle object type.
The following example creates a new
OracleParameter and displays the
ParameterName.
public void CreateOracleParameter()
{
OracleParameter myParameter = new OracleParameter("DName", OracleDbType.VarChar, 15, ParameterDirection.Output, true, 0, 0, "DName", DataRowVersion.Current, "DEVELOPMENT");
MessageBox.Show(myParameter.ToString());
}
Public Sub CreateOracleParameter()
Dim myParameter As New OracleParameter("DName", OracleDbType.VarChar, 15, ParameterDirection.Output, True, 0, 0, "DName", DataRowVersion.Current, "DEVELOPMENT")
MessageBox.Show(myParameter.ToString())
End Sub 'CreateOracleParameter