OrganizationServiceContextDetach Method
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Removes the entity from the set of entities that the OrganizationServiceContext is tracking.
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Parameters
- entity
-
Type:
Type: Entity. The entity to be removed from the set of entities that the OrganizationServiceContext is tracking.
- recursive
-
Type:
Type: Boolean. true to specify entities to be detached recursively, otherwise false.
Return Value
Type:Type: Boolean.
Returns true if the specified entity was detached; otherwise false.
Once an object is detached, it is no longer tracked by the OrganizationServiceContext. The Detach method can be called to detach any object, regardless of its state in the context. After detaching the specified entity, this method also detaches any links related to the entity.
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright