UriTemplate.ToString UriTemplate.ToString UriTemplate.ToString UriTemplate.ToString Method

定义

Returns a string representation of the UriTemplate instance.Returns a string representation of the UriTemplate instance.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

返回

The representation of the UriTemplate instance.The representation of the UriTemplate instance.

示例

下面的示例演示如何调用 ToString() 方法。The following example shows how to call the ToString() method.

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

适用于