asp.net.ph

OleDbParameter Constructor ( String, OleDbType, Int32, String )

System.Data.OleDb Namespace   OleDbParameter Class


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

[ VB ]
Overloads Public Sub New ( _
   ByVal name As String, _
   ByVal dataType As OleDbType, _
   ByVal size As Integer, _
   ByVal srcColumn As String _
)

[ C# ]
public OleDbParameter (
   string name,
   OleDbType dataType,
   int size,
   string srcColumn
);

[ C++ ]
public: OleDbParameter (
   String* name,
   OleDbType dataType,
   int size,
   String* srcColumn
);

[ JScript ]
public function OleDbParameter (
   name : String,
   dataType : OleDbType,
   size : int,
   srcColumn : String
);

Parameters

name
The name of the parameter to map.
dataType
One of the OleDbType values.
size
The width of the parameter.
srcColumn
The name of the source column.

Remarks

The Precision is inferred from the OleDbType parameter.

Example

The following example initializes an OleDbParameter and sets some of its properties.

public void CreateOleDbParameter ( ) {
   OleDbParameter myParam = new OleDbParameter ( "Description", OleDbType.VarChar, 
      100, "Description" );
   myParam.Direction = ParameterDirection.Output;
}
  C# VB

See Also

OleDbParameter Members   OleDbParameter Constructor Overload List Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note