共用方式為


QueueSystem.ReadMyJobStatus 方法

取得工作從 Project Server 佇列服務目前的使用者所擁有的狀態。

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

語法

'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/ReadMyJobStatus", 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 ReadMyJobStatus ( _
    messageTypes As QueueMsgType(), _
    JobCompletionState As JobState(), _
    fromDate As DateTime, _
    toDate As DateTime, _
    maxRows As Integer, _
    includeWaitTime As Boolean, _
    sortColumn As SortColumn, _
    sortOrder As SortOrder _
) As QueueStatusDataSet
'用途
Dim instance As QueueSystem
Dim messageTypes As QueueMsgType()
Dim JobCompletionState As JobState()
Dim fromDate As DateTime
Dim toDate As DateTime
Dim maxRows As Integer
Dim includeWaitTime As Boolean
Dim sortColumn As SortColumn
Dim sortOrder As SortOrder
Dim returnValue As QueueStatusDataSet

returnValue = instance.ReadMyJobStatus(messageTypes, _
    JobCompletionState, fromDate, toDate, _
    maxRows, includeWaitTime, sortColumn, _
    sortOrder)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/ReadMyJobStatus", 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 QueueStatusDataSet ReadMyJobStatus(
    QueueMsgType[] messageTypes,
    JobState[] JobCompletionState,
    DateTime fromDate,
    DateTime toDate,
    int maxRows,
    bool includeWaitTime,
    SortColumn sortColumn,
    SortOrder sortOrder
)

參數

  • messageTypes
    類型:[]

    QueueMsgType列舉值的陣列。

  • JobCompletionState
    類型:[]

    JobState列舉值的陣列。

  • fromDate
    類型:System.DateTime

    最小的日期與時間的佇列工作。

  • toDate
    類型:System.DateTime

    最大的日期與時間的佇列工作。

  • maxRows
    類型:System.Int32

    若要傳回的工作狀態資料列數目上限。

  • includeWaitTime
    類型:System.Boolean

    如果true,包括的預期的工作等待時間。

傳回值

類型:WebSvcQueueSystem.QueueStatusDataSet
目前的使用者,每個工作QueueStatusDataSet.StatusRow資料送出要求工作的狀態。

備註

如需工作狀態要求和產生的資料的範例,請參閱ReadJobStatusReadJobStatusSimple

Project Server 權限

權限

描述

LogOn

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

請參閱

參照

QueueSystem 類別

QueueSystem 成員

WebSvcQueueSystem 命名空間

ReadJobStatus

ReadJobStatusSimple