OrganizationServiceContextExtensions.AttachClone Kaedah

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

Clones an arbitrary source entity and attaches it to the context.

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

'Penggunaan
Dim context As OrganizationServiceContext
Dim entity As T
Dim includeRelatedEntities As Boolean
Dim returnValue As T

returnValue = OrganizationServiceContextExtensions.AttachClone(context, entity, includeRelatedEntities)

[ExtensionAttribute] 
public static T AttachClone<T> (
	OrganizationServiceContext context,
	T entity,
	[OptionalAttribute] bool includeRelatedEntities
) where T : Entity

GenericParameters

T

Type: Entity. The entity.

Parameter

context

Type: OrganizationServiceContext. The service context.

entity

Type: Entity. The entity instance.

includeRelatedEntities

Type: Boolean. Specifies whether to include related entity instances.

Nilai Pulangan

Type: T where T is Entity
.The resulting 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: