This documentation is archived and is not being maintained.

OracleParameter Constructor (String, OracleType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)

Initializes a new instance of the OracleParameter class that uses the parameter name, data type, length, source column name, parameter direction, numeric precision, and other properties.

Namespace:  System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

Public Sub New ( _
	name As String, _
	oracleType As OracleType, _
	size As Integer, _
	direction As ParameterDirection, _
	isNullable As Boolean, _
	precision As Byte, _
	scale As Byte, _
	srcColumn As String, _
	srcVersion As DataRowVersion, _
	value As Object _


Type: System.String
The name of the parameter.
Type: System.Data.OracleClient.OracleType
One of the OracleType values.
Type: System.Int32
The length of the parameter.
Type: System.Data.ParameterDirection
One of the ParameterDirection values.
Type: System.Boolean
true if the value of the field can be null, otherwise, false.
Type: System.Byte
The total number of digits to the left and right of the decimal point to which Value is resolved.
Type: System.Byte
The total number of decimal places to which Value is resolved.
Type: System.String
The name of the source column.
Type: System.Data.DataRowVersion
One of the DataRowVersion values.
Type: System.Object
An Object that is the value of the OracleParameter.


The value supplied in the oracleType parameter is an invalid back-end data type.

The following example creates an OracleParameter and displays the ParameterName.

Public Sub CreateOracleParameter()
    Dim parameter As New OracleParameter( _
        "DName", OracleType.VarChar, 11, _
        ParameterDirection.Output, True, 0, 0, _
        "DName", DataRowVersion.Current, "ENGINEERING")
End Sub 

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.