Export (0) Print
Expand All

IUpdatable Interface

An interface used to insert or update a resource by the HTTP POST method.

Namespace:  System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)

type IUpdatable =  interface end

The IUpdatable type exposes the following members.

  NameDescription
Public methodAddReferenceToCollectionAdds the specified value to the collection.
Public methodClearChangesCancels a change to the data.
Public methodCreateResourceCreates the resource of the specified type and that belongs to the specified container.
Public methodDeleteResourceDeletes the specified resource.
Public methodGetResourceGets the resource of the specified type identified by a query and type name.
Public methodGetValueGets the value of the specified property on the target object.
Public methodRemoveReferenceFromCollectionRemoves the specified value from the collection.
Public methodResetResourceResets the resource identified by the parameter resource to its default value.
Public methodResolveResourceReturns the instance of the resource represented by the specified resource object.
Public methodSaveChangesSaves all the changes that have been made by using the IUpdatable APIs.
Public methodSetReferenceSets the value of the specified reference property on the target object.
Public methodSetValueSets the value of the property with the specified name on the target resource to the specified property value.
Top

The IUpdatable interface is resource independent. The methods that return objects representing resources can return anything.

The returned object is an opaque object that represents the resource. To use the reference to read or update a value, the same opaque object is passed back to IUpdatable.

Implementation of IUpdatable must track the mapping between this opaque object to the object it represents. When the resource is serialized and a common language runtime (CLR) instance of the correct type is needed, the ResolveResource method on IUpdatable is called with the opaque object.

To serialize the object, call the ResolveResource method on IUpdatable.

.NET Framework

Supported in: 4.5, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft