OrganizationServiceContext.Attach Method (Entity)


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Notifies the OrganizationServiceContext to start tracking the specified entity.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

public void Attach(
	Entity entity


Type: Microsoft.Xrm.Sdk.Entity

Type: Entity. The entity to be tracked.

If the entity is part of an object graph, this operation does not traverse the graph to add related objects. It is a shallow operation.The method does not validate whether the specified entity set occurs in the Web service associated with the OrganizationServiceContext.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright