OrganizationServiceContext.AttachLink(Entity, Relationship, Entity) Method

Definition

Notifies the OrganizationServiceContext to start tracking the specified link that defines a relationship between entity objects.

public:
 void AttachLink(Microsoft::Xrm::Sdk::Entity ^ source, Microsoft::Xrm::Sdk::Relationship ^ relationship, Microsoft::Xrm::Sdk::Entity ^ target);
public void AttachLink (Microsoft.Xrm.Sdk.Entity source, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.Entity target);
member this.AttachLink : Microsoft.Xrm.Sdk.Entity * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.Entity -> unit
Public Sub AttachLink (source As Entity, relationship As Relationship, target As Entity)

Parameters

source
Entity

Type: Entity. The source entity in the new link.

relationship
Relationship

Type: Relationship. The name of the attribute or navigation property on the source object that represents the link between the source and target object.

target
Entity

Type: Entity. The target entity in the link that is bound to the source entity specified in this call.

Remarks

Applies to