Partager via


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

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