OracleParameter Constructor (String, Object)

OracleParameter Constructor (String, Object)

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Initializes a new instance of the OracleParameter class with the parameter name and an OracleParameter object.

[Visual Basic]
Public Sub New( _
   ByVal name As String, _
   ByVal value As Object _
public OracleParameter(
   string name,
 object value
public: OracleParameter(
   String* name,
 Object* value
public function OracleParameter(
   name : String,
 value : Object


The name of the parameter.
An OracleParameter object.


Use caution when using this overload of the OracleParameter constructor. Because this overload takes a value of type Object, you must convert the integral value to an Object type when the value is zero, as the following C# example demonstrates.

Parameter = new OracleParameter("pname", Convert.ToInt32(0));

If you do not perform this conversion, the compiler will assume you are attempting to call the OracleParameter (string, OracleType) constructor overload.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleParameter Class | OracleParameter Members | System.Data.OracleClient Namespace | OracleParameter Constructor Overload List

© 2016 Microsoft