System.Data.OleDb Namespace OleDbParameter Class
Sets or retrieves the name of the parameter.
Script |
OleDbParameter.ParameterName [ = strName ] |
The property is read/write with no default value.
IDataParameter.ParameterName
The OLE DB .NET Provider uses positional parameters that are marked with a question mark ( ? ) instead of named parameters.
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