Udostępnij za pośrednictwem


IODataPathHandler.Parse Method (IEdmModel, String, String)

 

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

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

Syntax

ODataPath Parse(
    IEdmModel model,
    string serviceRoot,
    string odataPath
)
ODataPath^ Parse(
    IEdmModel^ model,
    String^ serviceRoot,
    String^ odataPath
)
abstract Parse : 
        model:IEdmModel *
        serviceRoot:string *
        odataPath:string -> ODataPath
Function Parse (
    model As IEdmModel,
    serviceRoot As String,
    odataPath As String
) As ODataPath

Parameters

  • serviceRoot
    Type: System.String

    The service root of the OData path.

Return Value

Type: System.Web.OData.Routing.ODataPath

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

See Also

IODataPathHandler Interface
System.Web.OData.Routing Namespace

Return to top