Partager via


DefaultODataPathHandler.ParseTemplate Method (IEdmModel, String)

 

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

Namespace:   System.Web.OData.Routing
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public virtual ODataPathTemplate ParseTemplate(
    IEdmModel model,
    string odataPathTemplate
)
public:
virtual ODataPathTemplate^ ParseTemplate(
    IEdmModel^ model,
    String^ odataPathTemplate
)
abstract ParseTemplate : 
        model:IEdmModel *
        odataPathTemplate:string -> ODataPathTemplate
override ParseTemplate : 
        model:IEdmModel *
        odataPathTemplate:string -> ODataPathTemplate
Public Overridable Function ParseTemplate (
    model As IEdmModel,
    odataPathTemplate As String
) As ODataPathTemplate

Parameters

  • odataPathTemplate
    Type: System.String

    The OData path template to parse.

Return Value

Type: System.Web.OData.Routing.ODataPathTemplate

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

Implements

IODataPathTemplateHandler.ParseTemplate(IEdmModel, String)

See Also

DefaultODataPathHandler Class
System.Web.OData.Routing Namespace

Return to top