GetCustomObject(OracleUdtFetchOption)

This method returns the object that the specified REF references, as a custom type, using the specified fetch option.

Declaration

// C# - managed and core ODP.NET
public object GetCustomObject();
// C# - unmanaged ODP.NET
public object GetCustomObject(OracleUdtFetchOption fetchOption);

Parameters

Return Value

A custom object that represents the object that the specified REF references.

Exceptions

InvalidOperationException - The specified connection is not open, or a valid custom type has not been registered for the type of the referenced object.

Remarks

This method returns a custom type determined by the UDT mappings on the specified connection.

The connection must be opened explicitly by the application. This method does not open the connection implicitly.

Managed ODP.NET and ODP.NET Core always retrieves the object from the database as it does not have an object cache.

The application can use the OracleUdtFetchOption method to control the copy of the Object that is returned according to the specified option:

See Also: