Export (0) Print
Expand All

UriTemplate.ToString Method

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

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft