Compartir a través de


del método QueueSystem.QueuePurgeArchivedJobs

Purga archiva trabajos de la cola de Project Server.

Espacio de nombres:  WebSvcQueueSystem
Ensamblado:  ProjectServerServices (en ProjectServerServices.dll)

Sintaxis

'Declaración
<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 de la correlación de trabajo; Si una referencia null (Nothing en Visual Basic), Purgar todas las correlaciones.

  • hoursHistory
    Tipo: System.Nullable<Int32>

    Especifica el número de horas de los trabajos de archivados para purgar; Si una referencia null (Nothing en Visual Basic), purgar todo.

Comentarios

Permisos de Project Server

Se necesita uno de los siguientes permisos.

Permiso

Descripción

ManageQueue

Permite al usuario administrar la cola de Project Server. Permiso global.

CleanupProjectServerDatabase

Permite al usuario eliminar o mover los proyectos. Permiso global.

Vea también

Referencia

clase QueueSystem

Miembros QueueSystem

Espacio de nombres WebSvcQueueSystem