Name
OleDbParameter
Synopsis
This class represents a parameter for a stored procedure or
parameterized query. For information about the basic
OleDbParameter
members, refer to the reference for
the System.Data.IDbDataParameter
and
System.Data.IDataParameter
interfaces, which
OleDbParameter
implements.
In addition, the OleDbParameter
class adds a new
property: OleDbType
. This property sets the OLE
DB data type of a parameter. You should always set this value
(explicitly, or through one of the constructors) rather than the more
general DbType
. When you set
OleDbType
, DbType
is updated
automatically with the most compatible
System.Data.DbType
value.
public sealed class OleDbParameter : MarshalByRefObject, System.Data.IDbDataParameter, System.Data.IDataParameter, ICloneable { // Public Constructors public OleDbParameter( ); public OleDbParameter(stringname
, objectvalue
); public OleDbParameter(stringname
, OleDbTypedataType
); public OleDbParameter(stringname
, OleDbTypedataType
, intsize
); public OleDbParameter(stringparameterName
, OleDbTypedbType
, intsize
, System.Data.ParameterDirectiondirection
, boolisNullable
, byteprecision
, bytescale
, stringsrcColumn
, System.Data.DataRowVersionsrcVersion
, objectvalue
); public OleDbParameter(stringname
, OleDbTypedataType
, intsize
, stringsrcColumn
); // Public Instance Properties public DbType DbType{set; get; } // implements System.Data.IDataParameter public ParameterDirection Direction{set; get; } // implements System.Data.IDataParameter ...
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.