共用方式為


Project.QueueUpdateProjectTeam Method

Updates the project team for a specified project.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Project/QueueUpdateProjectTeam", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Project/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Project/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub QueueUpdateProjectTeam ( _
    JobUid As Guid, _
    sessionUid As Guid, _
    projectUid As Guid, _
    dataset As ProjectTeamDataSet _
)
'Usage
Dim instance As Project
Dim JobUid As Guid
Dim sessionUid As Guid
Dim projectUid As Guid
Dim dataset As ProjectTeamDataSet

instance.QueueUpdateProjectTeam(JobUid, _
    sessionUid, projectUid, dataset)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Project/QueueUpdateProjectTeam", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Project/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Project/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void QueueUpdateProjectTeam(
    Guid JobUid,
    Guid sessionUid,
    Guid projectUid,
    ProjectTeamDataSet dataset
)

Parameters

  • sessionUid
    Type: System.Guid
    The GUID of the session in which the queue job is submitted.
  • projectUid
    Type: System.Guid
    The GUID of the project.

Remarks

QueueUpdateProjectTeam cleans up resource data within a project. Old resources are removed, enterprise resource changes are incorporated, and new data is reconciled with enterprise data.

QueueUpdateProjectTeam is an asynchronous method that sends a message to the Project Server Queuing Service.

Wait for the queue to process the changes before trying to read the project team. If you read the project team before the changes are completed, you will not receive any team members that are still in the queue.

Project Server Permissions

Permission

Description

BuildTeamOnProject

Allows a user to make resource assignments from the resource pool to the specified project. Category permission.

See Also

Reference

Project Class

Project Members

Project Web Service

QueueUpdateProjectTeam

Other Resources

How to: Use the QueueSystem Service