Compartilhar via


ODataResourceSerializer.CreateResource Método

Definição

Cria o ODataResource a ser gravado durante a gravação deste recurso.

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

Parâmetros

selectExpandNode
SelectExpandNode

O SelectExpandNode que descreve o grafo de resposta.

resourceContext
ResourceContext

O contexto para a instância de recurso que está sendo gravada.

Retornos

O ODataResource criado.

Aplica-se a