UriTemplate Constructor (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: