Compartilhar via


QueueSystem.QueuePurgeArchivedJobs método

Limpezas arquivado trabalhos da fila do Project Server.

Namespace:  WebSvcQueueSystem
Assembly:  ProjectServerServices (em ProjectServerServices.dll)

Sintaxe

'Declaração
<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) _
)
'Uso
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
)

Parâmetros

  • correlationUID
    Tipo: System.Nullable<Guid>

    GUID da correlação trabalho; Se uma referência nula (Nothing no Visual Basic), limpar todas as correlações.

  • hoursHistory
    Tipo: System.Nullable<Int32>

    Especifica o número de horas de trabalhos arquivados para limpar; Se uma referência nula (Nothing no Visual Basic), Limpar tudo.

Comentários

Permissões do Project Server

Uma das seguintes permissões é necessária.

Permissão

Descrição

ManageQueue

Permite ao usuário gerenciar a fila do Project Server. Permissão global.

CleanupProjectServerDatabase

Permite que o usuário exclua ou mova os projetos. Permissão global.

Ver também

Referência

QueueSystem classe

QueueSystem membros

WebSvcQueueSystem namespace