IAttributeDatabaseFindAddOrUpdateAttributeValue Method |
If an attribute value with the specified id does not exist, then the function 'create' is called to create a new attribute value. If the 'create' function is null then no new attribute value is added.
If an attribute value with the specified id already exists, then the function 'update' (if not null) is called to update the attribute value.
Namespace: Demo3D.PLC.Comms.AttrDb
AttributeValue? FindAddOrUpdateAttributeValue( uint attributeId, Func<AttributeValue>? create, Action<AttributeValue>? update, out bool? created )