FromCustomObject(OracleConnection, IntPtr)
This interface method creates an Oracle Object or Collection by setting the attribute or element values respectively on the specified Oracle UDT.
Declaration
// C# void FromCustomObject(OracleConnection con, IntPtr pUdt);
Parameters
-
conAn
OracleConnectioninstance. -
pUdtAn opaque pointer to the Oracle Object or Collection to be created.
Remarks
The FromCustomObject method is used to build an Oracle Object or Collection from a custom object by setting attribute or element values respectively through the OracleUdt.SetValue method.
The OracleUdt.SetValue method is invoked as follows:
-
Oracle Object Type
For a custom type that represents an Oracle Object Type, the
OracleUdt.SetValuemethod must be invoked for each non-NULLattribute value that needs to be set. -
Oracle Collection Type
For a custom type that represents an Oracle Collection Type, a single call to
OracleUdt.SetValuemethod specifies the collection element values.