DB2Parameter.DB2Type Property
Gets or sets the DB2Type of the parameter.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Property DB2Type As DB2Type
[C#]
public DB2Type
DB2Type {get; set;}
[C++]
public: __property DB2Type
get_DB2Type();
public: __property void set_DB2Type(DB2Type
);
[JScript]
public function get DB2Type() : DB2Type
;
public function set DB2Type(DB2Type
);
Property value
An DB2®Type value that is the DB2Type of the parameter. The default is VarChar.
Remarks
The DB2Type and DbType properties are linked. Therefore, setting the DbType changes the DB2Type to a supporting DB2Type. Conversely, setting the DB2Type changes the DbType to a supporting DbType.
For a list of the supported data types, see the appropriate DB2Type member.