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
);
- name
- The name of the parameter to map.
- dataType
- One of the OleDbType values.
- size
- The width of the parameter.
The Precision is inferred from the OleDbType parameter.
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;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", OleDbType.VarChar, 100 )
myParam.Direction = ParameterDirection.Output
End Sub |
|
C# |
VB |
OleDbParameter Members OleDbParameter Constructor Overload List