C++ C#

AddAssociate(ItemType, string, string) Method

Class: AssociationType

Adds another ItemType to the set defined by this AssociationType

public AssociationType AddAssociate(ItemType associateItemType, string associateName, string associateDescription)

Parameters

Type Name Description
ItemType associateItemType The ItemType associated ItemType
string associateName Name of the AssociationType from the associated ItemType
string associateDescription Description of the AssociationType from the associated ItemType

Returns: AssociationType

Errors

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

HResult Message
3905 AssociationType with this name exists
3904 AttributeType with this name exists
3000 Invalid name