Open sandboxFocus

Method DetachFromParent

DetachFromParent(object, object, RelationshipInfo)

Detaches an object from its parent object.

Declaration
public virtual bool DetachFromParent(object obj, object parent, RelationshipInfo relationshipInfo)
Parameters
Type Name Description
object obj

An instance of the adapted type.

object parent

The object from which obj is detached.

RelationshipInfo relationshipInfo

Relationship of obj with respect to parent.

Returns
Type Description
bool

true if the current object has been fully detached, i.e. is no longer attached to its parent by any other relationship, or false if the current object is still attached to the parent by some relationship.

Remarks

This method is equivalent to DetachFromParent().

Implementations of this method can use the DetachChild(object, object, RelationshipInfo) method to detach items from the parent.