[This is preliminary documentation and is subject to change.]

Remove the Attachment if it is marked as temp.

Namespace:  OfficeClip.DBLayer.Desktop
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public ReturnStatus RemoveAttachmentIfTemp(
	int documentId,
	int currentUserId,
	bool isCurrentUserAdmin
)
Visual Basic (Declaration)
Public Function RemoveAttachmentIfTemp ( _
	documentId As Integer, _
	currentUserId As Integer, _
	isCurrentUserAdmin As Boolean _
) As ReturnStatus
Visual C++
public:
ReturnStatus RemoveAttachmentIfTemp(
	int documentId, 
	int currentUserId, 
	bool isCurrentUserAdmin
)

Parameters

documentId
Type: System..::.Int32
Id of the document
currentUserId
Type: System..::.Int32
The unique id of the current user
isCurrentUserAdmin
Type: System..::.Boolean
Is the current user an administrator

Return Value

Enumerated value Utils.ReturnStatus indicating if the operation succeeded or failed. OfficeClip.Utils..::.ReturnStatus

See Also