ODataResourceSerializer.CreateResource 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.
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.