QueueSystem.ReadQueueConfiguration 方法

Project Server 中获取指定的队列的配置设置。

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

语法

声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/ReadQueueConfiguration", 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 ReadQueueConfiguration ( _
    queueId As QueueID _
) As String
用法
Dim instance As QueueSystem
Dim queueId As QueueID
Dim returnValue As String

returnValue = instance.ReadQueueConfiguration(queueId)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/ReadQueueConfiguration", 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 string ReadQueueConfiguration(
    QueueID queueId
)

参数

返回值

类型:System.String
以 XML 格式的队列设置。

备注

您可以在Project Web App (https://ServerName/ProjectServerName/_layouts/pwa/Admin/queuesettings.aspx) 的队列设置页上创建项目和时间表队列的设置。

Project Server 权限

权限

说明

ManageQueue

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

示例

. . .
QueueSystemWS.QueueID qType = QueueSystemWS.QueueID.ProjectQ;
string qConfig = q.ReadQueueConfiguration(qType);

示例代码片段返回以下默认结果项目队列。

<?xml version="1.0" encoding="utf-8"?>
<queueconfigurationsettings>
  <setting name="MaxThreads" value="4" />
  <setting name="QueueTimeout" value="3" />
  <setting name="MsgRetryInterval" value="1000" />
  <setting name="MsgRetryLimit" value="5" />
  <setting name="GrpRetryLimit" value="5" />
  <setting name="SqlRetryInterval" value="1000" />
  <setting name="SqlRetryLimit" value="5" />
  <setting name="PollingInterval" value="1000" />
  <setting name="RestartThrottle" value="60000" />
  <setting name="EnablePerfMon" value="1" />
  <setting name="PeriodicTasksInterval" value="10000" />
  <setting name="CleanupSuccessAgeLimit" value="24" />
  <setting name="CleanupNonSuccessAgeLimit" value="168" />
  <setting name="CleanupInterval" value="24" />
  <setting name="CleanupIntervalOffset" value="0" />
  <setting name="SqlCommandTimeout" value="1800" />
  <setting name="FastPolling" value="1" />
</queueconfigurationsettings>

另请参阅

引用

QueueSystem 类

QueueSystem 成员

WebSvcQueueSystem 命名空间