[This is preliminary documentation and is subject to change.]
Handles the core functionality for Delete operation.
Declaration Syntax
C# |
public static ExecutionResult ExecuteDelete( Execution execution )
Parameters
- execution (Execution)
- The Execution object created for the Delete operation.
Return Value
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.
Remarks
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.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the target collection
is associated. |