Partager via


IODataPathTemplateHandler.ParseTemplate Method (IEdmModel, String)

 

Parses the specified OData path template as an ODataPathTemplate.

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

Syntax

ODataPathTemplate ParseTemplate(
    IEdmModel model,
    string odataPathTemplate
)
ODataPathTemplate^ ParseTemplate(
    IEdmModel^ model,
    String^ odataPathTemplate
)
abstract ParseTemplate : 
        model:IEdmModel *
        odataPathTemplate:string -> ODataPathTemplate
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 template, or null if the template does not match the model.

See Also

IODataPathTemplateHandler Interface
System.Web.OData.Routing Namespace

Return to top