ODataResourceSerializer.AppendInstanceAnnotations 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.
Method to append InstanceAnnotations to the ODataResource and Property. Instance annotations are annotations for a resource or a property and couldb be of contain a primitive, comple , enum or collection type These will be saved in to an Instance annotation dictionary
public virtual void AppendInstanceAnnotations (Microsoft.OData.ODataResource resource, Microsoft.AspNet.OData.ResourceContext resourceContext);
abstract member AppendInstanceAnnotations : Microsoft.OData.ODataResource * Microsoft.AspNet.OData.ResourceContext -> unit
override this.AppendInstanceAnnotations : Microsoft.OData.ODataResource * Microsoft.AspNet.OData.ResourceContext -> unit
Public Overridable Sub AppendInstanceAnnotations (resource As ODataResource, resourceContext As ResourceContext)
Parameters
- resource
- ODataResource
The ODataResource describing the resource, which is being annotated.
- resourceContext
- ResourceContext
The context for the resource instance, which is being annotated.