OrganizationServiceContext.Detach Méthode (Entity)
S'applique à: CRM 2015 on-prem, CRM Online
Removes the entity from the set of entities that the OrganizationServiceContext is tracking.
Espace de noms: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)
Syntaxe
'Déclaration
Public Function Detach ( _
entity As Entity _
) As Boolean
public bool Detach (
Entity entity
)
Paramètres
- entity
Type: Entity. The entity to be removed from the set of entities that the OrganizationServiceContext is tracking.
Valeur renvoyée
Type: Booléen.
true if the specified entity was detached; otherwise false.
Remarques
Once an object is detached, it is no longer tracked by the OrganizationServiceContext. The Detach method can be called to detach any object, regardless of its state in the context.After detaching the specified entity, this method also detaches any links related to the entity.
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows Vista,Windows XP
Voir aussi
Référence
Classe OrganizationServiceContext
Membres OrganizationServiceContext
Espace de noms Microsoft.Xrm.Sdk.Client
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.