DefaultODataPathHandler.ParseTemplate(String, IServiceProvider) 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.
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.