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如果空引用(无 在 Visual Basic 中),清除所有相关。

  • hoursHistory
    类型:System.Nullable<Int32>

    指定要清除 ; 的存档作业的小时数如果空引用(无 在 Visual Basic 中),清除所有。

备注

Project Server 权限

以下权限之一是必需的。

权限

说明

ManageQueue

允许用户管理 Project Server 队列。全局权限。

CleanupProjectServerDatabase

允许用户删除或移动项目。全局权限。

另请参阅

引用

QueueSystem 类

QueueSystem 成员

WebSvcQueueSystem 命名空间