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

Namespace: TunnelVisionLabs.Net
Assembly: TunnelVisionLabs.Net.UriTemplate (in TunnelVisionLabs.Net.UriTemplate.dll) Version: 1.0.0-beta004
Syntax
public UriTemplateMatch Match(
	Uri baseAddress,
	Uri candidate
)

Parameters

baseAddress
Type: SystemUri
The base address.
candidate
Type: SystemUri
The Uri to match against the template.

Return Value

Type: UriTemplateMatch
A UriTemplateMatch object containing the results of the match operation, or if the match failed.
Exceptions
ExceptionCondition
ArgumentNullException

If baseAddress is .

-or-

If candidate is .

InvalidOperationException

If baseAddress is a relative URI.

-or-

If candidate is a relative URI.

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