OracleNumber.op_Explicit Method (OracleNumber)

Converts the OracleNumber structure to Int64.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)

'Declaration
Public Shared Narrowing Operator CType ( _
	x As OracleNumber _
) As Long
'Usage
Dim input As OracleNumber
Dim output As Long

output = CType(input, Long)
Not applicable.

Parameters

x

The OracleNumber structure to be converted.

Return Value

A new Int64 structure whose value equals the Value of the OracleNumber structure.

The following code example creates an OracleNumber and converts it to an Int32.

 //Create OracleNumber and cast it to an Int32.
 OracleNumber n = new OracleNumber(42);
 Int32 i = (Int32)n;
 Console.WriteLine(i);
'Create OracleNumber and cast it to an Int32.
 Dim n As OracleNumber = New OracleNumber(42)
 Dim i As Int32 = (Int32)n
 Console.WriteLine(i))

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

Community Additions

ADD
Show: