IUpdatable.ResolveResource Method
Returns the instance of the resource represented by the specified resource object.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Function ResolveResource ( _
resource As Object _
) As Object
'Usage
Dim instance As IUpdatable
Dim resource As Object
Dim returnValue As Object
returnValue = instance.ResolveResource(resource)
Object ResolveResource(
Object resource
)
Object^ ResolveResource(
Object^ resource
)
abstract ResolveResource :
resource:Object -> Object
function ResolveResource(
resource : Object
) : Object
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.
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.