VersionUpdate Method
Description
Updates a version in Microsoft Office Project Server 2003. The PDS ensures that the specified version is unique and, if so, updates the associated version to the specified Type and GanttBarStyle in the versions value list.
Syntax
<Request>
<VersionUpdate>
<Version></Version>
<Type></Type>
<GanttBarStyle></GanttBarStyle>
</VersionUpdate>
</Request>
Parameters
Version
The version name.
GanttBarStyle
Valid values for GanttBarStyle are 1 through 40.
Type
Optional. Valid values for Type are 0 for regular versions, and 1 for archived versions. Type defaults to 0.
Return Value
If the version update was successful, the PDS returns a successful HRESULT and STATUS.
<Reply>
<HRESULT></HRESULT>
<STATUS></STATUS>
<UserName></UserName>
</Reply>
Remarks
The PDS checks Project Server security for the currently logged-on user, determines whether that user is a valid Project Server user, and checks whether that user has administration permission to update a version for the valid version value lists.
If the user attempts to update the default version, the update fails and the PDS returns an error code.