DataServiceContext.Detach Method
Silverlight
Removes the entity from the list of entities that the DataServiceContext is tracking.
Namespace: System.Data.Services.Client
Assembly: System.Data.Services.Client (in System.Data.Services.Client.dll)
Parameters
- entity
- Type: System.Object
The tracked entity to be detached from the DataServiceContext.
| Exception | Condition |
|---|---|
| ArgumentNullException | When entity is null. |
After an entity is detached, it is unaffected by operations in the DataServiceContext.
Any entity being tracked by the DataServiceContext, whether in the added, modified, deleted, or unchanged state, the entity may be detached.
After detaching the specified entity, this method also detaches any links related to the entity.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.