EntityExtensions.Clone Kaedah (EntityCollection, Boolean)

Applies To: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Deep clones an instance of the Entity class.

Ruang nama: Microsoft.Xrm.Client
Perhimpunan: Microsoft.Xrm.Client (dalam Microsoft.Xrm.Client.dll)

'Penggunaan
Dim entities As EntityCollection
Dim includeRelatedEntities As Boolean
Dim returnValue As EntityCollection

returnValue = EntityExtensions.Clone(entities, includeRelatedEntities)

[ExtensionAttribute] 
public static EntityCollection Clone (
	EntityCollection entities,
	[OptionalAttribute] bool includeRelatedEntities
)

Parameter

entities

Type: EntityCollection. The collection of entities.

includeRelatedEntities

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

Nilai Pulangan

Type: EntityCollection
The cloned entity.

Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.
Tunjukkan: