IEntityServiceTTryUndo Method |
Tries to undo the last change done to the entity.
Namespace:
Dundas.BI.Entities
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (9.0.0.1000)
Syntaxbool TryUndo(
Guid entityId,
out (T , UndoContext ) result
)
Function TryUndo (
entityId As Guid,
<OutAttribute> ByRef result As ( As T, As UndoContext)
) As Boolean
bool TryUndo(
Guid entityId,
[OutAttribute] ValueTuple<T, UndoContext^>% result
)
abstract TryUndo :
entityId : Guid *
result : ValueTuple<'T, UndoContext> byref -> bool
Parameters
- entityId
- Type: SystemGuid
The entity identifier. - result
- Type: SystemValueTupleT, UndoContext
The structure containing the entity with the specified ID undone and the current undo context.
If undo did not succeed, the entity would be .
Return Value
Type:
BooleanThe value of
if undo succeeded,
otherwise.
Exceptions| Exception | Condition |
|---|
| ArgumentException | entityId is Empty. |
| InvalidOperationException | The entity has never been saved before. -or- The entity is not checked out to the caller. |
| NotFoundException | The entity with the specified ID does not exist when saving an existing entity. |
| NoPrivilegeException | The caller does not have the Write permission on the entity. -or- The entity being saved is not a dashboard and the caller's seat kind is not PowerUser or better. |
| InvalidSessionException | The caller context is not associated with a valid session. |
See Also