AddObject Method
The AddObject method creates a new object entry of a specified type.
Syntax
Function AddObject (ByVal dwObjType As Unsigned Long, ByVal sDesc As String) As Unsigned Long
Parameters
dwObjType Required. Integer that specifies the object type, from the MSP_WEB_OBJECT_TYPES table. The initial values in this table are:
1 | Project |
2 | Task |
3 | Document |
4 | Issue |
5 | Risk |
sDesc Required. String that describes the object.
Return Values
Returns an integer representing the newly created object ID.
Remarks
This method is not used in Microsoft Office Project Web Access, but it could be used for a third-party extension.
See Also
AddProjectObject Method | AddSTSObject Method | AddTaskObject Method
Applies To
Additional Information
Object Link Provider Reference for Microsoft Office Project Server