asp.net.ph

OleDbParameter.OleDbType Property

System.Data.OleDb Namespace


Sets or retrieves the OleDbType of the parameter.

Syntax


Script OleDbParameter.OleDbType [ = enumValue ]

Property Value


enumValue One of the OleDbType values.

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

Exceptions


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

Remarks

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

OleDbType and DbType are linked. Setting the OleDbType changes the DbType 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", OleDbType.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