OrganizationServiceContext.Attach Method (Entity)


Applies To: Dynamics CRM 2015

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
void Attach(
    Entity^ entity
member Attach : 
        entity:Entity -> unit
Public Sub Attach (
    entity As Entity



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.

See Also

OrganizationServiceContext Class
Microsoft.Xrm.Sdk.Client Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright