Notifies the DataServiceContext that a new link exists between the objects specified and that the link is represented by the property specified in the SourceProperty argument.

Table 1. SetLink Activity Input Parameters

Argument

Type

Description

DataServiceContext

RepositoryServiceContext

The DataServiceContext to notify of the link.

Source

Object

The source object for the new link.

SourceProperty

String

The property on the source object that identifies the target object of the new link.

Target

Object

The child object involved in the new link to initialize by calling this method. The target object must be a subtype of the type identified by SourceProperty. If Target is set to null, the call represents a delete link operation.