다음을 통해 공유


ProjectDataSet.TaskRow.AddPosition Property

Specifies the position in a project to add the task.

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
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

Project Web Service