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)

Syntax

public void Attach(
    Entity entity
)
public:
void Attach(
    Entity^ entity
)
member Attach : 
        entity:Entity -> unit
Public Sub Attach (
    entity As Entity
)

Parameters

Remarks

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