RemoveLinks Method
The RemoveLinks method removes links to a certain object type or of a certain link type, for the specified object.
Syntax
Sub RemoveLinks(ByVal dwObjID As Unsigned Long, [ByVal dwLinkType As Unsigned Long], [ByVal dwObjType As Unsigned Long])
Parameters
dwObjID Required. Integer that specifies the object, by its ID.
dwLinkType Optional. Integer representing the link type, according to the following table:
1 | General relationship |
2 | Tasks are affected by issue |
3 | Tasks as action items for an issue |
4 | Tasks are affected by risk |
5 | Tasks are triggers for the risk |
6 | Tasks are part of the mitigation plan |
7 | Tasks are part of the contingency plan |
dwObjType Optional. Integer that specifies the object type according to the following table:
1 | Project |
2 | Task |
3 | Document |
4 | Issue |
5 | Risk |
This table is extensible for other object types.
Return Values
None.
Remarks
If dwLinkType is 0, then remove all objects of dwObjType to dwObjID.
If dwObjType is 0, then remove all objects of dwLinkType to dwObjID.
If both are 0, then remove all linked objects to dwObjID.
See Also
RemoveLink Method | RemoveDocLibLinks Method | RemoveProjectObjectAndLinks Method
Applies To
Additional Information
Object Link Provider Reference for Microsoft Office Project Server