Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft