Share via


ProjectDataSet.TaskRow.AddPosition property

Specifies the position in a project to add the task.

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

Syntax

'Declaration
Public Property AddPosition As Integer
    Get
    Set
'Usage
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

Remarks

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

Reference

ProjectDataSet.TaskRow class

ProjectDataSet.TaskRow members

WebSvcProject namespace