UriTemplate 範例

UriTemplate 類別提供可使用一組共用通用結構之 URI 的方法。 UriTemplate 範例會示範下列與 UriTemplate 有關的主要概念:

  • 建立範本的語法。

  • 從使用 UriTemplateBindByNameBindByPosition 產生 URI。

  • MatchBindByNameBindByPosition 的反向作業。

若要安裝、建置及執行範例

  1. 若要建置方案的 C# 或 Visual Basic .NET 版本,請遵循 Building the Windows Communication Foundation Samples中的指示。

  2. 若要在單一或多部電腦組態中執行此範例,請遵循執行 Windows Communication Foundation 範例中的指示進行。

另請參閱