The setting for the delete behavior for parent and child components. The prevention settings protect a document from deletion by causing an exception to be thrown on a deletion attempt. The ComponentPreventDeleteAction enumeration has constants defined for the component prevent delete settings.

Valid settings are:

  • ALLOW_BOTH_DELETE (default setting): Allows the deletion of both the parent and child component documents.
  • PREVENT_BOTH_DELETE: Prevents the deletion of both the parent and child component documents.
  • PREVENT_PARENT_DELETE: Prevents the deletion of the parent component document.
  • PREVENT_CHILD_DELETE: Prevents the deletion of the child component document if the parent component document exists. This setting also prevents the deletion of a parent component document if the ComponentCascadeDelete property for this ComponentRelationship object is set to CASCADE_DELETE (which deletes the child when the parent is deleted).

Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Property ComponentPreventDelete As ComponentPreventDeleteAction
C#
ComponentPreventDeleteAction ComponentPreventDelete { get; set; }
C++
property ComponentPreventDeleteAction ComponentPreventDelete abstract  {
    ComponentPreventDeleteAction get();
    void set(ComponentPreventDeleteAction value);
}
J#
/** property */
public ComponentPreventDeleteAction get_ComponentPreventDelete();

/** property */
public void set_ComponentPreventDelete(ComponentPreventDeleteAction value);
JScript
public function get ComponentPreventDelete() : ComponentPreventDeleteAction

public function set ComponentPreventDelete(value : ComponentPreventDeleteAction);

Remarks

See Also