ODataResourceDeserializer.ApplyInstanceAnnotations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deserializes the instance annotations from resourceWrapper
into resource
.
public virtual void ApplyInstanceAnnotations (object resource, Microsoft.AspNet.OData.Formatter.Deserialization.ODataResourceWrapper resourceWrapper, Microsoft.OData.Edm.IEdmStructuredTypeReference structuredType, Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext readContext);
abstract member ApplyInstanceAnnotations : obj * Microsoft.AspNet.OData.Formatter.Deserialization.ODataResourceWrapper * Microsoft.OData.Edm.IEdmStructuredTypeReference * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> unit
override this.ApplyInstanceAnnotations : obj * Microsoft.AspNet.OData.Formatter.Deserialization.ODataResourceWrapper * Microsoft.OData.Edm.IEdmStructuredTypeReference * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> unit
Public Overridable Sub ApplyInstanceAnnotations (resource As Object, resourceWrapper As ODataResourceWrapper, structuredType As IEdmStructuredTypeReference, readContext As ODataDeserializerContext)
Parameters
- resource
- Object
The object into which the annotations should be read.
- resourceWrapper
- ODataResourceWrapper
The resource object containing the annotations.
- structuredType
- IEdmStructuredTypeReference
The type of the resource.
- readContext
- ODataDeserializerContext
The deserializer context.