GetLinkedObjects Method
The GetLinkedObjects method returns an array of object IDs and types dependent on the parameters passed.
Syntax
Function GetLinkedObjects(ByVal dwObjID As Unsigned Long, ByVal dwLinkType As Unsigned Long, ByVal dwObjType As Unsigned Long, pvObjID As Variant, pvLinkType As Variant) As Unsigned Long
Parameters
dwObjID Required. Integer that specifies the object, by its ID.
dwLinkType Required. Integer that specifies the link type from 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 Required. 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.
pvObjID, pvLinkType Required. Variants updated with the object IDs and link types of all objects with links.
Return Values
Returns a record count (pdwLength) for the array ([pvObjID],[pvLinkType]) where pvObjID is the object ID of another object that is linked to dwObjID, pvLinkType is the link type for the pair of objects dwObjID and pvObjID.
Remarks
If dwLinkType and dwObjType are not 0, then the GetLinkedObjects method returns all objects with specified link type and object type are returned.
If both dwLinkType and dwObjType are 0, then the GetLinkedObjects method returns all objects linked to OBJECT1.
If dwLinkType is not 0, only objects with specified link type are returned.
If dwObjType is not 0, only objects of specified object type are returned.
See Also
GetLinkType Method | GetObjectDetails Method | GetObjectType Method | GetProjectIssues Method | GetSTSObjectID Method | GetTaskObjectID Method
Applies To
Additional Information
Object Link Provider Reference for Microsoft Office Project Server