Click or drag to resize
UriTemplateBindByNameT Method (Uri, IDictionaryString, T)
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<T>(
	Uri baseAddress,
	IDictionary<string, T> parameters
)

Parameters

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

Type Parameters

T
The type of parameter value provided in parameters.

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