Table of Contents

Interface IODataPathHandler

Namespace
System.Web.Http.OData.Routing
Assembly
System.Web.Http.OData.dll

Exposes the ability to parse an OData path as an ODataPath and convert an ODataPath into an OData link.

public interface IODataPathHandler

Methods

Converts an instance of ODataPath into an OData link.

string Link(ODataPath path)

Parameters

path ODataPath

The OData path to convert into a link.

Returns

string

The generated OData link.

Parse(IEdmModel, string)

Parses the specified OData path as an ODataPath that contains additional information about the EDM type and entity set for the path.

ODataPath Parse(IEdmModel model, string odataPath)

Parameters

model IEdmModel

The model to use for path parsing.

odataPath string

The OData path to parse.

Returns

ODataPath

A parsed representation of the URI, or null if the URI does not match the model.