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

Deletes all documents attached to a another OfficeClip object. For example, timesheet, expense or tracker case.

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

Syntax

C#
public ReturnStatus RemoveAllItemDocs(
	int itemId,
	int applicationId,
	int applicationSecondaryId,
	int currentUserId,
	bool isCurrentUserAdmin
)
Visual Basic (Declaration)
Public Function RemoveAllItemDocs ( _
	itemId As Integer, _
	applicationId As Integer, _
	applicationSecondaryId As Integer, _
	currentUserId As Integer, _
	isCurrentUserAdmin As Boolean _
) As ReturnStatus
Visual C++
public:
ReturnStatus RemoveAllItemDocs(
	int itemId, 
	int applicationId, 
	int applicationSecondaryId, 
	int currentUserId, 
	bool isCurrentUserAdmin
)

Parameters

itemId
Type: System..::.Int32
Id of another OfficeClip object for which all the attached (if any) are to be removed.
applicationId
Type: System..::.Int32
Id of the application to which object belongs whose attachments are being removed.
applicationSecondaryId
Type: System..::.Int32
Secondary Id distinguishing between two different kinds of objects belonging to an application.
currentUserId
Type: System..::.Int32
The unique id of the 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