[This is preliminary documentation and is subject to change.]
Handles the core functionality for Delete operation.
| C# |
public static ExecutionResult ExecuteDelete( Execution execution )
- execution (Execution)
- The Execution object created for the Delete operation.
A warning ExecutionResult with an appropriate
message if the object has any logged associations to it, otherwise either
CommitResult if the object was deleted, or
NoActionResult if the user cancelled.
If the target object's class has the LogAssociations function,
then a check is made to determine if the object has any associations to it,
and a warning is returned if this is the case. Otherwise, the user is
asked for confirmation before deletion. If given, the target object is
removed from the target collection.
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if the target collection
is associated. |