UriTemplate.ToString Method ()

 
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.

Returns a string representation of the UriTemplate instance.

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

public override string ToString()

Return Value

Type: System.String

The representation of the UriTemplate instance.

The following example shows how to call the ToString() method.

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

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