This documentation is archived and is not being maintained.

OracleParameter.OracleType Property

Gets or sets the OracleType of the parameter.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in

Public Property OracleType As OracleType
Dim instance As OracleParameter
Dim value As OracleType

value = instance.OracleType

instance.OracleType = value
/** @property */
public OracleType get_OracleType ()

/** @property */
public void set_OracleType (OracleType value)

public function get OracleType () : OracleType

public function set OracleType (value : OracleType)

Not applicable.

Property Value

An OracleType value that is the OracleType of the parameter. The default is VarChar.

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

The DbType, OracleType, and Size properties of a parameter can be inferred by setting Value. Therefore, you are not required to specify them. However, they are not exposed in OracleParameter property settings. For example, if the size of the parameter has been inferred, Size does not contain inferred value after statement execution. For String data types the default is VarChar.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1