asp.net.ph

OleDbParameter.DBType Property

System.Data.OleDb Namespace   OleDbParameter Class


Sets or retrieves the native data type of the parameter.

Syntax


Script OleDbParameter.DBType [ = enumValue ]

Property Value


enumValue One of the DBType values.

The property is read/write with a default value of Variant.

Implements

IDataParameter.DbType

Exceptions


Exception Type Condition
ArgumentOutOfRangeException The property was not set to a valid DBType.

Remarks

Use the DBType property to specify or determine the native data type of a given parameter.

DbType and OleDbType are linked. Setting the DbType changes the OleDbType to a supported OleDbType enum value.

Example

The following example initializes an OleDbParameter and sets some of its properties.

public void CreateOleDbParameter ( ) {
   OleDbParameter myParam = new OleDbParameter ( "Description", DbType.VarChar, 100 );
   myParam.Direction = ParameterDirection.Output;
}
  C# VB

See Also

OleDbParameter Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph