共用方式為


Project.QueuePublishSummary Method

Publishes the stage summaries of the specified project, in a partial publish operation.

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/QueuePublishSummary", 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 Function QueuePublishSummary ( _
    jobUid As Guid, _
    projectUid As Guid _
) As ProjectRelationsDataSet
'Usage
Dim instance As Project
Dim jobUid As Guid
Dim projectUid As Guid
Dim returnValue As ProjectRelationsDataSet

returnValue = instance.QueuePublishSummary(jobUid, _
    projectUid)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Project/QueuePublishSummary", 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 ProjectRelationsDataSet QueuePublishSummary(
    Guid jobUid,
    Guid projectUid
)

Parameters

  • projectUid
    Type: System.Guid
    The GUID of the project.

Return Value

Type: [Project Web service].ProjectRelationsDataSet
The ProjectRelationsDataSet is empty when doing a partial publish of stage summaries. It is returned to provide parity with the QueuePublish method.

Remarks

The QueuePublishSummary method checks whether the Published database contains a lower version number of the project than the Drafts database. If so, QueuePublishSummary calls QueuePublish to do a full publish.

QueuePublishSummary is a new method in Project Server 2010. QueuePublishSummary is an asynchronous method that sends a publish summary message to the Project Server queue.

Project Server Permissions

Permission

Description

EditProjectProperties

Allows a user to edit the new project. Category permission.

SaveProject

Allows a user to save the specified project. Category permission.

If the user does not have both permissions, Project Server issues a GeneralSecurityAccessDenied error.

See Also

Reference

Project Class

Project Members

Project Web Service