QueueSystem.ReadAllJobStatus 方法

从 Project Server 队列服务中获取指定的类型和状态的所有作业的状态。

命名空间:  WebSvcQueueSystem
程序集:  ProjectServerServices(位于 ProjectServerServices.dll 中)

语法

声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/ReadAllJobStatus", 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 ReadAllJobStatus ( _
    jobStates As JobState(), _
    messageTypes As QueueMsgType(), _
    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 jobStates As JobState()
Dim messageTypes As QueueMsgType()
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.ReadAllJobStatus(jobStates, _
    messageTypes, fromDate, toDate, maxRows, _
    includeWaitTime, sortColumn, sortOrder)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/ReadAllJobStatus", 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 ReadAllJobStatus(
    JobState[] jobStates,
    QueueMsgType[] messageTypes,
    DateTime fromDate,
    DateTime toDate,
    int maxRows,
    bool includeWaitTime,
    SortColumn sortColumn,
    SortOrder sortOrder
)

参数

  • jobStates
    类型:[]

    JobState枚举值的数组。

  • messageTypes
    类型:[]

    QueueMsgType枚举值的数组。

  • fromDate
    类型:System.DateTime

    最小的日期和时间的队列作业。

  • toDate
    类型:System.DateTime

    最大的日期和时间的队列作业。

  • maxRows
    类型:System.Int32

    作业状态要返回的行的最大数量。

  • includeWaitTime
    类型:System.Boolean

    如果true,包括预期的工作等待时间。

返回值

类型:WebSvcQueueSystem.QueueStatusDataSet
对于每个作业的QueueStatusDataSet.StatusRow数据的请求作业的状态。

备注

有关作业状态请求和生成的数据的示例,请参阅ReadJobStatusReadJobStatusSimple

Project Server 权限

权限

说明

ManageQueue

允许用户管理 Project Server 队列。全局权限。

另请参阅

引用

QueueSystem 类

QueueSystem 成员

WebSvcQueueSystem 命名空间

ReadJobStatus

ReadJobStatusSimple