Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

Show:
© 2015 Microsoft