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

Errors

Errors cause a Platform::Exception to be thrown with the following HResult and Message

HResult Message
1102 Association already exists
1101 Association of this type cannot be created between these Items
1100 AssociationType is invalid for an Item of this type