UriTemplateExtensions CreateUrl Method (IEnumerable UriTemplateDescription , String, IEnumerable KeyValuePair String, Object  )DocuWare Platform .NET API
Creates the URL for the specified template and binds parameters.

Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient (in DocuWare.RestClient.dll) Version: 6.5.0.0 (6.5.0.5648)
Syntax

public static string CreateUrl(
	this IEnumerable<UriTemplateDescription> templates,
	string templateName,
	IEnumerable<KeyValuePair<string, Object>> parameters
)

Parameters

templates
Type: OnlineSystem.Collections.Generic IEnumerable UriTemplateDescription 
The templates.
templateName
Type: OnlineSystem String
Name of the template.
parameters
Type: OnlineSystem.Collections.Generic IEnumerable OnlineKeyValuePair OnlineString, OnlineObject  
The parameters.

Return Value

Type: OnlineString
The URL with bound parameters.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIEnumerable UriTemplateDescription . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionThe specified template '{0}' cannot be found.;templateName
See Also