次の方法で共有


QueueSystem.ReadQueueConfiguration Method

Gets the configuration settings of the specified queue in Project Server.

Namespace:  [QueueSystem Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/QueueSystem.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/QueueSystem.asmx?wsdl

Syntax

'Declaration
<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
'Usage
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
)

Parameters

Return Value

Type: System.String
Queue settings in XML format.

Remarks

You can create settings for the Project and Timesheet queues on the Queue Settings page in Project Web App (https://ServerName/ProjectServerName/_layouts/pwa/Admin/queuesettings.aspx).

Project Server Permissions

Permission

Description

ManageQueue

Allows the user to manage the Project Server queue. Global permission.

Examples

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

The example code fragment returns the following default results for the Project queue.

<?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>

See Also

Reference

QueueSystem Class

QueueSystem Members

QueueSystem Web Service