IUpdatable.ResolveResource Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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