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: [QueueSystem Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/QueueSystem.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/QueueSystem.asmx?wsdl
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.
- messageType
Type: [QueueSystem Web service].QueueMsgType
QueueMsgType enumeration value.
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 |
---|---|
Allows the user to log on to Project Server. Global permission. |