共用方式為


TimeSheet.QueueCleanUpTimesheets 方法

移除指定的日期之間的時程表列。

命名空間:  WebSvcTimeSheet
組件:  ProjectServerServices (在 ProjectServerServices.dll 中)

語法

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

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

參數

備註

如果之後的完成日期是開始日期, QueueCleanUpTimesheets不會刪除任何時程表的記錄。

此方法會送出至QueueSystem物件的工作。此工作的CorrelationGUID屬性等於TS_UID屬性的值。

注意事項注意事項

QueueCleanUpTimesheets方法不會發生例外狀況或指出任何錯誤,如果將開始日期之後的完成日期。此方法不會影響時程表,但會成功時實際上卻已失敗。

Project Server 權限

權限

描述

CleanupProjectServerDatabase

允許使用者刪除或移動的資料庫中的資料。通用權限。

請參閱

參照

TimeSheet 類別

TimeSheet 成員

WebSvcTimeSheet 命名空間