RemoveRelations Method
Description
Removes an asset's relations.
Syntax
Visual Basic
Public Sub RemoveRelations( _
   ByVal DeleteAll As Boolean, _
   Optional ByVal AssetID As Long = -1, _
   Optional ByVal AssetType As String = "" _
) 
Parameters
DeleteAll

If true, relations are removed both where the asset is the owner of the relation and where the asset is the related entity.

If false,  only the relations for which the asset is the relation owner are removed.

AssetID

The ID of the asset.

If no value, or if -1 is passed, the asset that owns this AssetRelationFactory is used.

AssetType

The name of the project data table that contains the asset.

If an empty string is passed, the asset that owns this AssetRelationFactory is used.

See Also