Jaa


EntityExtensions.Clone Method (Entity, Boolean)

 

Applies To: Dynamics CRM 2015

Deep clones an instance of the Entity class.

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

Syntax

public static Entity Clone(
    this Entity entity,
    bool includeRelatedEntities = true
)
public:
[ExtensionAttribute]
static Entity^ Clone(
    Entity^ entity,
    bool includeRelatedEntities = true
)
static member Clone : 
        entity:Entity *
        includeRelatedEntities:bool = true -> Entity
<ExtensionAttribute>
Public Shared Function Clone (
    entity As Entity,
    includeRelatedEntities As Boolean
) As Entity

Parameters

  • includeRelatedEntities
    Type: System.Boolean

    Type: Boolean. true if related entities should be included in the cloned entity; otherwise, false.

Return Value

Type: Microsoft.Xrm.Sdk.Entity

Type: Entity
The cloned entity.

See Also

Clone Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright