ODataPathSegmentTemplate.TryMatch Method (ODataPathSegment, IDictionary<String, Object>)
Matches the template with an ODataPathSegment.
Namespace: System.Web.OData.Routing
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual bool TryMatch(
ODataPathSegment pathSegment,
IDictionary<string, object> values
)
public:
virtual bool TryMatch(
ODataPathSegment^ pathSegment,
IDictionary<String^, Object^>^ values
)
abstract TryMatch :
pathSegment:ODataPathSegment *
values:IDictionary<string, Object> -> bool
override TryMatch :
pathSegment:ODataPathSegment *
values:IDictionary<string, Object> -> bool
Public Overridable Function TryMatch (
pathSegment As ODataPathSegment,
values As IDictionary(Of String, Object)
) As Boolean
Parameters
pathSegment
Type: System.Web.OData.Routing.ODataPathSegmentThe path segment to match this template with.
values
Type: System.Collections.Generic.IDictionary<String, Object>The dictionary of matches to be updated if the segment matches the template.
Return Value
Type: System.Boolean
true if the segment matches the template; otherwise, false.
See Also
ODataPathSegmentTemplate Class
System.Web.OData.Routing Namespace
Return to top