OrganizationServiceContext.DetachLink Method (Entity, Relationship, Entity)
Applies To: Dynamics CRM 2015
Removes the specified link from the list of links being tracked by the OrganizationServiceContext.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public bool DetachLink(
Entity source,
Relationship relationship,
Entity target
)
public:
bool DetachLink(
Entity^ source,
Relationship^ relationship,
Entity^ target
)
member DetachLink :
source:Entity *
relationship:Relationship *
target:Entity -> bool
Public Function DetachLink (
source As Entity,
relationship As Relationship,
target As Entity
) As Boolean
Parameters
source
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The source entity participating in the link to be marked for deletion.
relationship
Type: Microsoft.Xrm.Sdk.RelationshipType: Relationship. The name of the attribute or navigation property on the source entity that represents the source in the link between the source and the target.
target
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The target entity involved in the link that is bound to the source object.
Return Value
Type: System.Boolean
Type: Boolean.
true if the specified entity was detached; otherwise false.
Remarks
Any link being tracked by the OrganizationServiceContext, regardless of its current state, can be detached.
See Also
OrganizationServiceContext Class
Microsoft.Xrm.Sdk.Client Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright