Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataServiceContext.DeleteObject Method

Changes the state of the specified object to be deleted in the DataServiceContext.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
public void DeleteObject(
	Object entity
)

Parameters

entity
Type: System.Object
The tracked entity to be changed to the deleted state.
ExceptionCondition
ArgumentNullException

When entity is null.

InvalidOperationException

When the object is not being tracked by the DataServiceContext.

All links to the specified entity are also marked deleted.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.