This documentation is archived and is not being maintained.

IUpdatable.ResolveResource Method

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

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

Object ResolveResource(
	Object resource
)

Parameters

resource
Type: System.Object
The object representing the resource whose instance needs to be retrieved.

Return Value

Type: System.Object
Returns the instance of the resource represented by the specified resource object.

This method is called to resolve the opaque object returned by the CreateResource or GetResource API into the CLR instance. This is normally called after SaveChanges to serialize the resource for POST methods.

This method is also called if there are update interceptors invoked with the common language runtime (CLR) resource instances. It can be used if the provider supports optimistic concurrency and the resource type has concurrency tokens defined by ETagAttribute in a CLR-based provider.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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