Share via


DefaultODataPathHandler.ParseTemplate(String, IServiceProvider) Method

Definition

Parses the specified OData path template as an ODataPathTemplate that can be matched to an ODataPath.

public virtual Microsoft.AspNet.OData.Routing.Template.ODataPathTemplate ParseTemplate (string odataPathTemplate, IServiceProvider requestContainer);
abstract member ParseTemplate : string * IServiceProvider -> Microsoft.AspNet.OData.Routing.Template.ODataPathTemplate
override this.ParseTemplate : string * IServiceProvider -> Microsoft.AspNet.OData.Routing.Template.ODataPathTemplate
Public Overridable Function ParseTemplate (odataPathTemplate As String, requestContainer As IServiceProvider) As ODataPathTemplate

Parameters

odataPathTemplate
String

The OData path template to parse.

requestContainer
IServiceProvider

The dependency injection container for the request.

Returns

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

Implements

Applies to