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

Deletes a particular timesheet identified by timesheetId.

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

Syntax

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

Parameters

timesheetId
Type: System..::.Int32
Id of the timesheet which needs to be deleted.
currentUserId
Type: System..::.Int32
unique id of the current user
isCurrentUserAdmin
Type: System..::.Boolean
is the current user an administrator

Return Value

0 when successful, -1 in case of an error.

See Also