Share via


QueueSystem.GetProposedJobWaitTime method

Calculates the expected amount of time to process a proposed job of the specified type in the Project Server Queuing Service.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/GetProposedJobWaitTime", 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 Function GetProposedJobWaitTime ( _
    correlationUID As Guid, _
    messageType As QueueMsgType _
) As Integer
'Usage
Dim instance As QueueSystem
Dim correlationUID As Guid
Dim messageType As QueueMsgType
Dim returnValue As Integer

returnValue = instance.GetProposedJobWaitTime(correlationUID, _
    messageType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/GetProposedJobWaitTime", 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 int GetProposedJobWaitTime(
    Guid correlationUID,
    QueueMsgType messageType
)

Parameters

  • correlationUID
    Type: System.Guid

    GUID of the job correlation.

Return value

Type: System.Int32
Number of seconds of expected wait time.

Remarks

The expected wait time for a proposed job is only approximate, based on the average wait times for jobs of similar type. GetProposedJobWaitTime also takes into account the position the job would have on the queue and the correlation priority.

Project Server Permissions

Permission

Description

LogOn

Allows the user to log on to Project Server. Global permission.

See also

Reference

QueueSystem class

QueueSystem members

WebSvcQueueSystem namespace