Share via


ODataResourceSerializer.CreateResource Method

Definition

Creates the ODataResource to be written while writing this resource.

public virtual Microsoft.OData.ODataResource CreateResource (Microsoft.AspNet.OData.Formatter.Serialization.SelectExpandNode selectExpandNode, Microsoft.AspNet.OData.ResourceContext resourceContext);
abstract member CreateResource : Microsoft.AspNet.OData.Formatter.Serialization.SelectExpandNode * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataResource
override this.CreateResource : Microsoft.AspNet.OData.Formatter.Serialization.SelectExpandNode * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataResource
Public Overridable Function CreateResource (selectExpandNode As SelectExpandNode, resourceContext As ResourceContext) As ODataResource

Parameters

selectExpandNode
SelectExpandNode

The SelectExpandNode describing the response graph.

resourceContext
ResourceContext

The context for the resource instance being written.

Returns

The created ODataResource.

Applies to