Share via


SetLinkType Method

The SetLinkType method updates a link type for an existing link.

Syntax

Sub SetLinkType(ByVal dwObj1   As Unsigned Long, ByVal dwObj2   As Unsigned Long, [ByVal dwLinkType   As Unsigned Long = 1])

Parameters

dwObj1     Required. Integer that specifies the first object, by its ID.

dwObj2     Required. Integer that specifies the second object, by its ID.

dwLinkType     Optional. Integer that represents 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

This parameter is optional and defaults to 1.

Return Values

None.

Remarks

This method would normally be used to update a link where the relationship changed from a general one to one where a value of 2 or 3 was required. It would be used in place of the AddLink method or the AddLinks method if a link between objects already existed.

You can define new link types for custom solutions.

See Also

AddLink Method | AddLinks Method | GetLinkType Method

Applies To

IObjLinkProvider Interface

Additional Information

Object Link Provider Reference for Microsoft Office Project Server