Поделиться через


DataServiceContext.UpdateObject Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub UpdateObject ( _
    entity As Object _
)
public void UpdateObject(
    Object entity
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

When entity is nulla null reference (Nothing in Visual Basic).

ArgumentException

When entity is in a Detached state.

Remarks

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

Examples

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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