共用方式為


QueueSystem.QueuePurgeArchivedJobs 方法

清除封存從 Project Server 佇列的工作。

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

語法

'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/QueuePurgeArchivedJobs", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub QueuePurgeArchivedJobs ( _
    jobUid As Guid, _
    queueId As QueueID, _
    correlationUID As Nullable(Of Guid), _
    messageType As Nullable(Of QueueMsgType), _
    hoursHistory As Nullable(Of Integer) _
)
'用途
Dim instance As QueueSystem
Dim jobUid As Guid
Dim queueId As QueueID
Dim correlationUID As Nullable(Of Guid)
Dim messageType As Nullable(Of QueueMsgType)
Dim hoursHistory As Nullable(Of Integer)

instance.QueuePurgeArchivedJobs(jobUid, _
    queueId, correlationUID, messageType, _
    hoursHistory)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/QueuePurgeArchivedJobs", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void QueuePurgeArchivedJobs(
    Guid jobUid,
    QueueID queueId,
    Nullable<Guid> correlationUID,
    Nullable<QueueMsgType> messageType,
    Nullable<int> hoursHistory
)

參數

  • correlationUID
    類型:System.Nullable<Guid>

    工作相互關聯 ; 的 GUID如果null 參考 (未執行任何動作 於 Visual Basic 中),清除所有相互關聯。

  • hoursHistory
    類型:System.Nullable<Int32>

    會指定要清除 ; 封存工作的時數如果null 參考 (未執行任何動作 於 Visual Basic 中),清除所有。

備註

Project Server 權限

其中一個下列權限,則需要。

權限

描述

ManageQueue

可讓使用者管理 Project Server 佇列。通用權限。

CleanupProjectServerDatabase

允許使用者刪除或移動的專案。通用權限。

請參閱

參照

QueueSystem 類別

QueueSystem 成員

WebSvcQueueSystem 命名空間