Remove a target off the relation. If collection is not editable, exception will be thrown. Target doesn't exist will not cause any exceptions. It will fire the "TargetRemoved" event is removal is successful.

Namespace: Cartella.Interfaces
Assembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
bool RemoveRelation(
	TTarget targetObj
)
Visual Basic
Function RemoveRelation ( _
	targetObj As TTarget _
) As Boolean
Visual C++
bool RemoveRelation(
	TTarget targetObj
)

Parameters

targetObj
Type: TTarget
Target object to be removed from collection

Field Value

Boolean

Return Value

True if successful

See Also