ProjectDataSet.TaskRow.AddPosition Property

Specifies the position in a project to add a task.

Namespace:  WebSvcProject
Assembly:  ProjectServerWebServices (in ProjectServerWebServices.dll)


Public Property AddPosition As Integer
Dim instance As ProjectDataSet.TaskRow
Dim value As Integer

value = instance.AddPosition

instance.AddPosition = value
public int AddPosition { get; set; }

Property Value

Type: System.Int32


When you add a task to a project, AddPosition specifies where to add the task.

Use the Task.AddPositionType enumeration as follows:

  • First: value 0. Add the task at the beginning (top task) of the project.

  • Middle: value 1. Add the task after another specified task. In this case, you must also specify a valid task GUID for AddAfterTaskUID.

  • Last: value 2. Add the task at the end (bottom task) of the project.

Do not use the Dummy or Summary values of AddPositionType; they are for internal use.

If AddPosition is not specified (null), the task is added to the end of the project. Project Server ignores AddPosition when updating an existing task.

See Also


ProjectDataSet.TaskRow Class

ProjectDataSet.TaskRow Members

WebSvcProject Namespace