Partager via


QueueSystem.SetQueueConfiguration Method

Makes a configuration setting for a specified queue in the Project Server Queuing Service.

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/SetQueueConfiguration", 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 Sub SetQueueConfiguration ( _
    queueId As QueueID, _
    name As String, _
    value As String _
)
'Usage
Dim instance As QueueSystem
Dim queueId As QueueID
Dim name As String
Dim value As String

instance.SetQueueConfiguration(queueId, _
    name, value)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/SetQueueConfiguration", 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 void SetQueueConfiguration(
    QueueID queueId,
    string name,
    string value
)

Parameters

Remarks

For minimum, maximum, and default values, see 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 Project Server queue. Global permission.

Examples

The following code example sets the Timesheet queue polling interval to 2 seconds. SetQueueConfiguration can set any one of the queue configuration settings that you can obtain with the ReadQueueConfiguration method.

. . .
QueueSystemWS.QueueID qType = QueueSystemWS.QueueID.TimesheetQ;
string qSettingName = "PollingInterval";
string qSettingValue = "2000";
string qConfig = q.SetQueueConfiguration(qType, qSettingName, qSettingValue);

Following are the default results of ReadQueueConfiguration for the Timesheet 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