UriTemplate Constructor (String)

 

Initializes a new instance of the UriTemplate class with the specified template string.

Namespace:   System
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public UriTemplate(
	string template
)

Parameters

template
Type: System.String

The template.

The following example shows how to call the constructor.

UriTemplate template = new UriTemplate("weather/{state}/{city}?forecast={day}");

.NET Framework
Available since 3.5
Silverlight
Available since 4.0
Return to top
Show: