EntityExtensions.Clone Method (EntityCollection, 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 EntityCollection Clone(
this EntityCollection entities,
bool includeRelatedEntities = true
)
public:
[ExtensionAttribute]
static EntityCollection^ Clone(
EntityCollection^ entities,
bool includeRelatedEntities = true
)
static member Clone :
entities:EntityCollection *
includeRelatedEntities:bool = true -> EntityCollection
<ExtensionAttribute>
Public Shared Function Clone (
entities As EntityCollection,
includeRelatedEntities As Boolean
) As EntityCollection
Parameters
entities
Type: Microsoft.Xrm.Sdk.EntityCollectionType: EntityCollection. The collection of entities.
includeRelatedEntities
Type: System.BooleanType: Boolean. true if related entities should be included in the cloned entity; otherwise, false.
Return Value
Type: Microsoft.Xrm.Sdk.EntityCollection
Type: EntityCollection
The cloned entity.
See Also
Clone Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace
Return to top
© 2017 Microsoft. All rights reserved. Copyright