SetValue(OracleConnection, object, int, object, object)
This method sets either the specified collection attribute of the specified Oracle Object or elements of the specified Oracle Collection, to the specified value using the supplied null status of the collection elements.
Declaration
// C# public static void SetValue(OracleConnection con, object Udt, int attrIndex, object value, object statusArray);
Parameters
- 
                        conAn OracleConnectioninstance.
- 
                        UdtAn Oracle UDT object.
- 
                        attrIndexThe index of the attribute to be set. Specify 0 for setting collection elements from a Custom Type that represents an Oracle Collection. 
- 
                        valueThe attribute or collection value to be set. 
- 
                        statusArrayThe null status for the collection elements. 
Exceptions
ArgumentException - The specified value is not of the appropriate type.
                  
Remarks
The IOracleCustomType.FromCustomObject method invokes OracleUdt.SetValue method passing it the con and Udt parameters. The OracleUdt.SetValue method returns these types of object:
                  
- 
                        Oracle Object Type For a Custom Type that represents an Oracle Object Type, the type accepted for a specified attribute index is the type of the member in the custom class or struct that is mapped to the attribute using the OracleObjectMappingAttributeobject.
- 
                        Oracle Collection Type For a Custom Type that represents an Oracle Collection Type, the type accepted is the type of the member in the custom class or struct to which the OracleArrayMappingAttributeobject is applied.