Export (0) Print
Expand All

OracleParameter.OracleType Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets the OracleType of the parameter.

[Visual Basic]
Public Property OracleType As OracleType
[C#]
public OracleType OracleType {get; set;}
[C++]
public: __property OracleType get_OracleType();
public: __property void set_OracleType(OracleType);
[JScript]
public function get OracleType() : OracleType;
public function set OracleType(OracleType);

Property Value

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

Remarks

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 OracleType.VarChar.

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

Requirements

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

.NET Framework Security: 

See Also

OracleParameter Class | OracleParameter Members | System.Data.OracleClient Namespace

Show:
© 2014 Microsoft