OrganizationServiceContextExtensions.AttachClone-methode
Van toepassing op: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online
Clones an arbitrary source entity and attaches it to the context.
Naamruimte: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Gebruik
'Gebruik
Dim context As OrganizationServiceContext
Dim entity As T
Dim includeRelatedEntities As Boolean
Dim returnValue As T
returnValue = OrganizationServiceContextExtensions.AttachClone(context, entity, includeRelatedEntities)
Syntaxis
'Declaratie
<ExtensionAttribute> _
Public Shared Function AttachClone(Of T As Entity) ( _
context As OrganizationServiceContext, _
entity As T, _
<OptionalAttribute> Optional includeRelatedEntities As Boolean = False _
) As T
[ExtensionAttribute]
public static T AttachClone<T> (
OrganizationServiceContext context,
T entity,
[OptionalAttribute] bool includeRelatedEntities
) where T : Entity
GenericParameters
- T
Type: Entity. The entity.
Parameters
- context
Type: OrganizationServiceContext. The service context.
- entity
Type: Entity. The entity instance.
- includeRelatedEntities
Type: Boole-waarde. Specifies whether to include related entity instances.
Retourwaarde
Type: T where T is Entity
.The resulting entity.
Thread-veiligheid
Alle openbare statische (Shared in Visual Basic) leden van dit type zijn thread-veilig. Exemplaarleden zijn niet gegarandeerd thread-veilig.
Platforms
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
Zie ook
Verwijzing
OrganizationServiceContextExtensions-klasse
OrganizationServiceContextExtensions-leden
Microsoft.Xrm.Client-naamruimte
Overige resources
Developer Extensions for Microsoft Dynamics CRM
Attach Entities to the Context
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.