Click or drag to resize

IOperationServiceDeleteDocument Method

Deletes an unsent document after locking and revision checking.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
void DeleteDocument(
	Guid documentId,
	int revision,
	ICredentials credentials
)

Parameters

documentId  Guid
Identifier of the locally stored document.
revision  Int32
Revision from the last read document snapshot. Re-read the document after a change conflict before retrying.
credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.
Exceptions
ExceptionCondition
PermissionDeniedExceptionThe caller has insufficient document permissions.
ConstraintViolationExceptionDocument data or state violates Front rules.
EntityModifiedExceptionRe-read the document and review the changes before retrying.
EntityAlreadyInUseExceptionThe document is locked by another operation.
See Also