C++ C#

GetItemObjectCollection(ItemObjectSource<I>^, bool, bool, bool, bool, Func<I>^) Method

API Reference

Namespace: Semata.DataStore.ObjectModel

Class: Association<I>

Returns an ItemObjectCollection that allows the items with which this Item is associated to be iterated through and items to be added and removed from this association

public:
ItemObjectCollection<I>^ GetItemObjectCollection(ItemObjectSource<I>^ source, bool addNew, bool add, bool remove, bool deleteOnRemove, Func<I>^ creator)

Parameters

Type Name Description
ItemObjectSource<I>^ source The source of the ItemObjects
bool addNew If true, and creator is not null, ItemObjectCollection.AddNewItemObject() will create a new ItemObject using call to creator(), and then add it to the Association
bool add If true ItemObjectCollection.AddItemObject() will add the passed ItemObject to the Association
bool remove If true ItemObjectCollection.RemoveItemObject() will remove the passed ItemObject from the Association
bool deleteOnRemove If true , and remove is true, ItemObjectCollection.RemoveItemObject() will remove the passed ItemObject from the Association, and delete it.
Func<I>^ creator Called by ItemObjectCollection.AddNewItemObject() to create the object

Returns: ItemObjectCollection<I>^

This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.