asp.net.ph

OleDbParameter Constructor ( String, OleDbType )

System.Data.OleDb Namespace   OleDbParameter Class


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

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

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

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

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

Parameters

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

Remarks

The Size and Precision are 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 );
   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