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,包括预期的工作等待时间。
sortColumn
类型:WebSvcQueueSystem.SortColumn指定要排序的作业列表中的字段。
sortOrder
类型:WebSvcQueueSystem.SortOrder指定是否为排序和在什么次序。
返回值
类型:WebSvcQueueSystem.QueueStatusDataSet
请求由当前用户,每个作业的QueueStatusDataSet.StatusRow数据提交的作业的状态。
备注
有关作业状态请求和生成的数据的示例,请参阅ReadJobStatus和ReadJobStatusSimple。
Project Server 权限
权限 |
说明 |
---|---|
允许用户登录到 Project Server。全局权限。 |