Matches the current template with an OData path.
Namespace:   System.Web.OData.Routing
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public bool TryMatch(
    ODataPath path,
    IDictionary<string, object> values
)
public:
bool TryMatch(
    ODataPath^ path,
    IDictionary<String^, Object^>^ values
)
member TryMatch : 
        path:ODataPath *
        values:IDictionary<string, Object> -> bool
Public Function TryMatch (
    path As ODataPath,
    values As IDictionary(Of String, Object)
) As Boolean
Parameters
- path 
 Type: System.Web.OData.Routing.ODataPath- The OData path to be matched against. 
- values 
 Type: System.Collections.Generic.IDictionary<String, Object>- The dictionary of matches to be updated in case of a match. 
Return Value
Type: System.Boolean
true in case of a match; otherwise, false.
See Also
ODataPathTemplate Class
System.Web.OData.Routing Namespace
Return to top