Click or drag to resize
UriTemplateBindByName Method (Uri, IDictionaryString, Object)
This API is preliminary and subject to change.
Creates a new URI from the template and the collection of parameters. The URI formed by the expanded template is resolved against baseAddress to produce an absolute URI.

Namespace: TunnelVisionLabs.Net
Assembly: TunnelVisionLabs.Net.UriTemplate (in TunnelVisionLabs.Net.UriTemplate.dll) Version: 1.0.0-beta004
Syntax
public Uri BindByName(
	Uri baseAddress,
	IDictionary<string, Object> parameters
)

Parameters

baseAddress
Type: SystemUri
The base address of the URI.
parameters
Type: System.Collections.GenericIDictionaryString, Object
The parameter values.

Return Value

Type: Uri
A Uri object representing the expanded template.
Exceptions
ExceptionCondition
ArgumentNullException

If baseAddress is .

-or-

If parameters is .

ArgumentException

If baseAddress is not an absolute URI.

InvalidOperationException

If a variable reference with a prefix modifier expands to a collection or dictionary.

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