TimeSheet.QueueCleanUpTimesheets Method

Removes timesheet lines between specified dates.

Namespace:  WebSvcTimeSheet
Assembly:  ProjectServerWebServices (in ProjectServerWebServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/QueueCleanUpTimesheets", RequestNamespace := "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/",  _
    ResponseNamespace := "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub QueueCleanUpTimesheets ( _
    start As DateTime, _
    finish As DateTime _
)
'Usage
Dim instance As TimeSheet
Dim start As DateTime
Dim finish As DateTime

instance.QueueCleanUpTimesheets(start, _
    finish)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/QueueCleanUpTimesheets", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/", 
    ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void QueueCleanUpTimesheets(
    DateTime start,
    DateTime finish
)

Parameters

Remarks

If the start date is after the finish date, QueueCleanUpTimesheets does not delete any timesheet records.

This method submits jobs to the QueueSystem object. The CorrelationGUID property for the job is equal to the value of the TS_UID property.

Note

The QueueCleanUpTimesheets method does not throw an exception or indicate any error if the start date is after the finish date. The method does not affect timesheets but appears to succeed when in fact it has failed.

Project Server Permissions

Permission

Description

CleanupProjectServerDatabase

Delete or move data in the database.

Global permission.

See Also

Reference

TimeSheet Class

TimeSheet Members

WebSvcTimeSheet Namespace