Condividi tramite


Archive.QueueRestoreProject Method

Restores the specified archived project version from the Archive database to the Published database

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Archive/QueueRestoreProject", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Archive/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Archive/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub QueueRestoreProject ( _
    jobUID As Guid, _
    projectUID As Guid, _
    versionUID As Guid _
)
'Usage
Dim instance As Archive
Dim jobUID As Guid
Dim projectUID As Guid
Dim versionUID As Guid

instance.QueueRestoreProject(jobUID, _
    projectUID, versionUID)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Archive/QueueRestoreProject", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Archive/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Archive/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void QueueRestoreProject(
    Guid jobUID,
    Guid projectUID,
    Guid versionUID
)

Parameters

  • projectUID
    Type: System.Guid
    The GUID of the archived project.
  • versionUID
    Type: System.Guid
    The GUID of the project version.

Remarks

QueueRestoreProject is an asynchronous method that sends a message to the Project Server Queuing Service. The versionUID is the value from the QueueArchiveProject call that created the archived project version.

Project Server Permissions

Permission

Description

ManageProjectServerRestore

Allows a user to perform a backup of Project Server entities. Global permission.

See Also

Reference

Archive Class

Archive Members

Archive Web Service