OrganizationServiceContext.AttachLink Method (Entity, Relationship, Entity)
Applies To: Dynamics CRM 2015
Notifies the OrganizationServiceContext to start tracking the specified link that defines a relationship between entity objects.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public void AttachLink(
Entity source,
Relationship relationship,
Entity target
)
public:
void AttachLink(
Entity^ source,
Relationship^ relationship,
Entity^ target
)
member AttachLink :
source:Entity *
relationship:Relationship *
target:Entity -> unit
Public Sub AttachLink (
source As Entity,
relationship As Relationship,
target As Entity
)
Parameters
source
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The source entity in the new link.
relationship
Type: Microsoft.Xrm.Sdk.RelationshipType: Relationship. The name of the attribute or navigation property on the source object that represents the link between the source and target object.
target
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The target entity in the link that is bound to the source entity specified in this call.
See Also
OrganizationServiceContext Class
Microsoft.Xrm.Sdk.Client Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright