C++ C#

ItemObjectCollection<I> Class

API Reference

Namespace: Semata.DataStore.ObjectModel

A source of ItemObjects, and methods to add and remove ItemObjects from that source.

A collection is not a feature of DataStore, it is just a combination of an ItemObjectSource and 3 methods that meet the delegates signatures.

Some of the ItemObjectCollections provided by Association, actually add and remove to the underlyling association. However, the supplied delegates could posess considerably more functionality, and maybe not even affect the underlying assocation

public class ItemObjectCollection<I> where I : ItemObject

Constructors

Name Description
ItemObjectCollection(ItemObjectSource<I>, Func<I>, Action<I>, Action<I>)

Constructs as new instance of ItemObjectCollection

Events

Name Description
SourceChanged

Occurs when SourceWritten is raised on ItemObjectSource

Properties

Name Description
AllowAdd

Is AddItemObject avalable?

AllowAddNew

Is AddNewItemObject avalable?

AllowRemove

Is RemoveItemObject avalable?

Source

Returns the ItemObjectSource

Methods

Name Description
AddItemObject(I)

Add ItemObject to set.

AddNewItemObject()

Add new ItemObject to Set and return.

RemoveItemObject(I)

Remove ItemObject from set.

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.