UriTemplate.ToString Method ()

 

Returns a string representation of the UriTemplate instance.

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

Public Overrides Function ToString As String

Return Value

Type: System.String

The representation of the UriTemplate instance.

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

Dim template As UriTemplate = 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: