Επεξεργασία

Κοινή χρήση μέσω


IUpdatable.ResolveResource(Object) Method

Definition

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

public:
 System::Object ^ ResolveResource(System::Object ^ resource);
public object ResolveResource (object resource);
abstract member ResolveResource : obj -> obj
Public Function ResolveResource (resource As Object) As Object

Parameters

resource
Object

The object representing the resource whose instance needs to be retrieved.

Returns

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

Remarks

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.

Applies to