DataServiceContext.Detach(Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Supprime l'entité de la liste d'entités en cours de suivi par le DataServiceContext.
public virtual bool Detach (object entity);
abstract member Detach : obj -> bool
override this.Detach : obj -> bool
Public Overridable Function Detach (entity As Object) As Boolean
Paramètres
- entity
- Object
Entité suivie à détacher du DataServiceContext.
Retours
Retourne true si l'entité spécifiée était détachée ; sinon, false.
Exceptions
Quand entity
est Null.