Export (0) Print
Expand All

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5 SP1

Community Additions

ADD
Show:
© 2014 Microsoft