C++ C#

AssociationProperty(ItemObject^, String^, String^, bool, bool, Func<object, object>^, Func<object, object>^, bool) Method

API Reference

Namespace: Semata.DataStore.ObjectModel

Class: AssociationProperty<I>

Constructs a new instance of AssociationProperty

public:
^ AssociationProperty(ItemObject^ itemObject, String^ associationTypeName, String^ propertyName, bool required, bool unique, Func<object, object>^ onChanged, Func<object, object>^ onWriting, bool deleteRemovedAssociate)

Parameters

Type Name Description
ItemObject^ itemObject The ItemObject of which this is a property
String^ associationTypeName The name of the AssociationType from which this property was derived
String^ propertyName Name of the property as it appears on the ItemObject
bool required If true, value cannot be null
bool unique If true, a non-null value needs to be unique
Func<object, object>^ onChanged delegate that takes the value being set, after it has been converted, and returns a value
Func<object, object>^ onWriting delegate that takes the value being written, prior to it being written, and returns a value
bool deleteRemovedAssociate An associate that becomes unset is deleted

Returns: MISSING PAGE

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.