Share via


OrganizationServiceContextExtensions.ReAttach Method (OrganizationServiceContext, Entity)

 

Applies To: Dynamics CRM 2015

Resets the EntityState of an entity before attaching it to the context.

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

Syntax

public static void ReAttach(
    this OrganizationServiceContext context,
    Entity entity
)
public:
[ExtensionAttribute]
static void ReAttach(
    OrganizationServiceContext^ context,
    Entity^ entity
)
static member ReAttach : 
        context:OrganizationServiceContext *
        entity:Entity -> unit
<ExtensionAttribute>
Public Shared Sub ReAttach (
    context As OrganizationServiceContext,
    entity As Entity
)

Parameters

See Also

EntityState
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Attach entities to the context (Dynamics CRM 2015)

Return to top

© 2017 Microsoft. All rights reserved. Copyright