Export (0) Print
Expand All

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.

Community Additions

ADD
Show:
© 2014 Microsoft