Share via


AddTaskObject Method

The AddTaskObject method creates a new object entry for a specified task in the MSP_WEB_OBJECTS table.

Syntax

Function AddTaskObject(ByVal dwProjID   As Unsigned Long, ByVal dwTaskID   As Unsigned Long) As Unsigned Long

Parameters

dwProjID     Required. Integer that specifies the project, by its ID. This is WPROJ_ID from the MSP_WEB_PROJECTS table, rather than PROJ_ID from the MSP_PROJECTS table.

dwTaskID     Required. Integer that specifies the task within the project. Held in MSP_TASKS and MSP_WEB_ASSIGNMENTS tables. These two parameters uniquely identify a task.

Return Values

Returns an integer representing the newly created object ID.

See Also

AddObject Method | AddProjectObject Method | AddSTSObject Method

Applies To

IObjLinkProvider Interface

Additional Information

Object Link Provider Reference for Microsoft Office Project Server