Share via


ODataPathSegmentTemplate.TryMatch Method

Definition

Matches the template with an ODataPathSegment.

public virtual bool TryMatch (Microsoft.OData.UriParser.ODataPathSegment pathSegment, System.Collections.Generic.IDictionary<string,object> values);
abstract member TryMatch : Microsoft.OData.UriParser.ODataPathSegment * System.Collections.Generic.IDictionary<string, obj> -> bool
override this.TryMatch : Microsoft.OData.UriParser.ODataPathSegment * System.Collections.Generic.IDictionary<string, obj> -> bool
Public Overridable Function TryMatch (pathSegment As ODataPathSegment, values As IDictionary(Of String, Object)) As Boolean

Parameters

pathSegment
ODataPathSegment

The path segment to match this template with.

values
IDictionary<String,Object>

The dictionary of matches to be updated if the segment matches the template.

Returns

true if the segment matches the template; otherwise, false.

Applies to