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)

public interface class IUpdatable

NameDescription
System_CAPS_pubmethodAddReferenceToCollection(Object^, String^, Object^)

Adds the specified value to the collection.

System_CAPS_pubmethodClearChanges()

Cancels a change to the data.

System_CAPS_pubmethodCreateResource(String^, String^)

Creates the resource of the specified type and that belongs to the specified container.

System_CAPS_pubmethodDeleteResource(Object^)

Deletes the specified resource.

System_CAPS_pubmethodGetResource(IQueryable^, String^)

Gets the resource of the specified type identified by a query and type name.

System_CAPS_pubmethodGetValue(Object^, String^)

Gets the value of the specified property on the target object.

System_CAPS_pubmethodRemoveReferenceFromCollection(Object^, String^, Object^)

Removes the specified value from the collection.

System_CAPS_pubmethodResetResource(Object^)

Resets the resource identified by the parameter resource to its default value.

System_CAPS_pubmethodResolveResource(Object^)

Returns the instance of the resource represented by the specified resource object.

System_CAPS_pubmethodSaveChanges()

Saves all the changes that have been made by using the IUpdatable APIs.

System_CAPS_pubmethodSetReference(Object^, String^, Object^)

Sets the value of the specified reference property on the target object.

System_CAPS_pubmethodSetValue(Object^, String^, Object^)

Sets the value of the property with the specified name on the target resource to the specified property value.

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
Available since 3.5
Return to top
Show: