Click or drag to resize
UriTemplateMatch Method
This API is preliminary and subject to change.
Attempts to match a Uri to a UriTemplate. A successful match operation results in an assignment of values to variables in the URI Template which is capable of producing a candidate URI through the BindByName Overload operation.
Overload List
Remarks

There are several limitations in the current implementation of this operation.

The matching algorithm prefers to use simple string values for all variables not explicitly listed in arrayVariables and/or mapVariables. Any variable listed in either of these parameters will not be considered for matching as a simple string. If no assignment of values to variables is possible using this choice, one or more variables may be treated as associative arrays and/or maps in order to produce a successful assignment. The exception to this rule is compound template variables (which use the explode modifier); these variables prefer to match as arrays instead of simple strings, even if the result produces an array containing exactly one string. If a variable appears in both arrayVariables and mapVariables and the result successfully matches using both options, it is unspecified which one will be returned.

See Also