IsetBusinessObjectArrayAttribute()

Sets the value of an attribute that is a business object array (multiple cardinality).

Syntax

void IsetBusinessObjectArrayAttribute(string attributeName, 
     IBusinessObjectArray value);

Parameters

attributeName
The name of the multiple-cardinality attribute whose value is set.
value
The business object array that is the value for the attribute.

Return Values

None.

Exceptions

IInvalidAttributeTypeException
Thrown when the attribute is not a business object array.
IInvalidAttributeNameException
Thrown when the attribute name is invalid.

Example

// Call the BusinessObjectArray attribute method
String arrayAttribute = "CustomerAddress";
IBusinessObject CustomerAddress =
     accessSession.IcreateBusinessObjectArray ("Address");
IBusinessObject exampleBO = 
     accessSession.IcreateBusinessObject ("Customer");
exampleBO.IsetBusinessObjectArrayAttribute(arrayAttribute,
     CustomerAddress);

Copyright IBM Corp. 2004, 2005