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

DataServiceContext.UpdateObject Method

Changes the state of the specified object in the DataServiceContext to Modified.

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

Parameters

entity
Type: System.Object
The tracked entity to be assigned to the Modified state.
ExceptionCondition
ArgumentNullException

When entity is null.

ArgumentException

When entity is in a Detached state.

For examples that use the UpdateObject method, see Modifying and Deleting Entity Data (WCF Data Services/Silverlight).

For examples that use the UpdateObject method, see Modifying and Deleting Entity Data (WCF Data Services/Silverlight).

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.