Click or drag to resize
UriTemplateMatch Method (Uri, ICollectionString)
This API is preliminary and subject to change.
Attempts to match a Uri to a UriTemplate.

Namespace: Rackspace.Net
Assembly: Rackspace.Net.UriTemplate (in Rackspace.Net.UriTemplate.dll) Version: 1.0.0.0-beta003
Syntax
public UriTemplateMatch Match(
	Uri candidate,
	ICollection<string> requiredVariables
)

Parameters

candidate
Type: SystemUri
The Uri to match against the template.
requiredVariables
Type: System.Collections.GenericICollectionString
A collection of variables which must be provided during the expansion process for the resulting URI to be valid.

Return Value

Type: UriTemplateMatch
A UriTemplateMatch object containing the results of the match operation, or if the match failed. The default value is an empty collection.
Exceptions
ExceptionCondition
ArgumentNullException If candidate is .

-or-

If requiredVariables is .

ArgumentException If requiredVariables contains a or empty value.
Remarks
For detailed information about the behavior of this method, see the remarks in the documentation for the Match Overload methods.
Version Information

.NET Framework

Supported in: 2.0

Portable Class Library

Supported in: Portable Class Library (Legacy)

URI Template Library

Supported in: 1.0
See Also