Add a relation entry to the collection.
If the collection is not editable, exception will be thrown.
If the target unique ID already exists in the keys collection, exception will be thrown.
It will also fire the "TargetAdded" event if successful
Namespace: Cartella.InterfacesAssembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
void AddRelation(
TTarget targetObj
) |
Visual Basic |
---|
Sub AddRelation ( _
targetObj As TTarget _
) |
Visual C++ |
---|
void AddRelation(
TTarget targetObj
) |
Parameters
- targetObj
- Type: TTarget
Target Object to add to relations collection. Exception will be thrown
if target's ID value already exists in key list of the collection
Field Value
Void
See Also