OleDbType Property

OleDbParameter.OleDbType Property

Gets or sets the OleDbType of the parameter.

[Visual Basic]
Public Property OleDbType As OleDbType
public OleDbType OleDbType {get; set;}
public: __property OleDbType get_OleDbType();
public: __property void set_OleDbType(OleDbType);
public function get OleDbType() : OleDbType;
public function set OleDbType(OleDbType);

Property Value

The OleDbType of the parameter. The default is VarWChar


The OleDbType and DbType are linked. Therefore, setting the DbType changes the OleDbType to a supporting OleDbType.

For a list of the supported data types, see the appropriate OleDbType member. For more information, see Using Parameters with a DataAdapter.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OleDbParameter Class | OleDbParameter Members | System.Data.OleDb Namespace

© 2016 Microsoft