asp.net.ph

OleDbParameter Constructor ( String, OleDbType, Int32 )

System.Data.OleDb Namespace   OleDbParameter Class


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

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

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

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

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

Parameters

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

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 );
   myParam.Direction = ParameterDirection.Output;
}
  C# VB

See Also

OleDbParameter Members   OleDbParameter Constructor Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph