Export (0) Print
Expand All

OracleParameter Constructor

.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.

Overload List

Initializes a new instance of the OracleParameter class.

[Visual Basic] Public Sub New()
[C#] public OracleParameter();
[C++] public: OracleParameter();
[JScript] public function OracleParameter();

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

[Visual Basic] Public Sub New(String, Object)
[C#] public OracleParameter(string, object);
[C++] public: OracleParameter(String*, Object*);
[JScript] public function OracleParameter(String, Object);

Initializes a new instance of the OracleParameter class with the parameter name and data type.

[Visual Basic] Public Sub New(String, OracleType)
[C#] public OracleParameter(string, OracleType);
[C++] public: OracleParameter(String*, OracleType);
[JScript] public function OracleParameter(String, OracleType);

Initializes a new instance of the OracleParameter class with the parameter name, data type, and length.

[Visual Basic] Public Sub New(String, OracleType, Integer)
[C#] public OracleParameter(string, OracleType, int);
[C++] public: OracleParameter(String*, OracleType, int);
[JScript] public function OracleParameter(String, OracleType, int);

Initializes a new instance of the OracleParameter class with the parameter name, data type, length, and source column name.

[Visual Basic] Public Sub New(String, OracleType, Integer, String)
[C#] public OracleParameter(string, OracleType, int, string);
[C++] public: OracleParameter(String*, OracleType, int, String*);
[JScript] public function OracleParameter(String, OracleType, int, String);

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

[Visual Basic] Public Sub New(String, OracleType, Integer, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)
[C#] public OracleParameter(string, OracleType, int, ParameterDirection, bool, byte, byte, string, DataRowVersion, object);
[C++] public: OracleParameter(String*, OracleType, int, ParameterDirection, bool, unsigned char, unsigned char, String*, DataRowVersion, Object*);
[JScript] public function OracleParameter(String, OracleType, int, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object);

Example

[Visual Basic, C#, C++] The following example creates an OracleParameter and displays the ParameterName.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of the OracleParameter constructor. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Public Sub CreateOracleParameter()
    Dim myParameter As New OracleParameter("DName", OracleType.VarChar, 11, ParameterDirection.Output, True, 0, 0, "DName", DataRowVersion.Current, "ENGINEERING")
    MessageBox.Show(myParameter.ToString())
End Sub 'CreateOracleParameter

[C#] 
public void CreateOracleParameter() 
 {
    OracleParameter myParameter = new OracleParameter("DName",OracleType.VarChar,
                11,ParameterDirection.Output,true,0,0,"DName",
                DataRowVersion.Current,"ENGINEERING");
    MessageBox.Show(myParameter.ToString());
 }

[C++] 
public:
void CreateOracleParameter() 
 {
    OracleParameter* myParameter = new OracleParameter(S"DName",OracleType::VarChar,
                11,ParameterDirection::Output,true,0,0,S"DName",
                DataRowVersion::Current,S"ENGINEERING");
    MessageBox::Show(myParameter->ToString());
 }

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

OracleParameter Class | OracleParameter Members | System.Data.OracleClient Namespace

Show:
© 2014 Microsoft