C++ C#

AddAssociation(AssociationType, Item) Method

Class: Item

Associates this Item with another

public void AddAssociation(AssociationType associationType, Item item)

Parameters

Type Name Description
AssociationType associationType The AssociationType
Item item The other Item

Returns: void

Exceptions

Type Description
AssociationAlreadyExists Association already exists
InvalidAssociateForItem Association of this type cannot be created between these Items
InvalidAssociationTypeForItem AssociationType is invalid for an Item of this type