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 (24.3.0.1000)
Syntax
bool TryUndo(
	Guid entityId,
	out (T , UndoContext ) result
)

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: Boolean
The value of if undo succeeded, otherwise.
Exceptions
ExceptionCondition
ArgumentExceptionentityId is Empty.
InvalidOperationException

The entity has never been saved before.

-or-

The entity is not checked out to the caller.

NotFoundExceptionThe 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.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also