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 _
)
[C#]
public OracleParameter(
   string name,
 object value
);
[C++]
public: OracleParameter(
   String* name,
 Object* value
);
[JScript]
public function OracleParameter(
   name : String,
 value : Object
);

Parameters

name
The name of the parameter.
value
An OracleParameter object.

Remarks

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.

Requirements

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

Show:
© 2016 Microsoft