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
)
参数
jobUid
类型:System.Guid队列作业的 GUID。
queueId
类型:WebSvcQueueSystem.QueueIDProjectQ或TimesheetQ值QueueID枚举之一。
correlationUID
类型:System.Nullable<Guid>作业互联 ; 的 GUID如果空引用(无 在 Visual Basic 中),清除所有相关。
messageType
类型:System.Nullable<QueueMsgType>QueueMsgType枚举值。如果空引用(无 在 Visual Basic 中),清除所有类型。
hoursHistory
类型:System.Nullable<Int32>指定要清除 ; 的存档作业的小时数如果空引用(无 在 Visual Basic 中),清除所有。
备注
Project Server 权限
以下权限之一是必需的。
权限 |
说明 |
---|---|
允许用户管理 Project Server 队列。全局权限。 |
|
允许用户删除或移动项目。全局权限。 |