共用方式為


QueueSystem.GetProposedJobWaitTime 方法

計算預期的處理指定類型的 Project Server 佇列服務中的建議的工作的時間長度。

命名空間:  WebSvcQueueSystem
組件:  ProjectServerServices (在 ProjectServerServices.dll 中)

語法

'宣告
<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
'用途
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
)

參數

  • correlationUID
    類型:System.Guid

    工作相互關聯的 GUID。

傳回值

類型:System.Int32
預期的等待時間的秒數。

備註

預期的工作的等待時間建議只有大約,根據類似類型的工作的平均等待時間。GetProposedJobWaitTime還需考慮工作會對佇列與相互關聯優先順序的位置。

Project Server 權限

權限

描述

LogOn

允許使用者登入 Project Server。通用權限。

請參閱

參照

QueueSystem 類別

QueueSystem 成員

WebSvcQueueSystem 命名空間