UriTemplate 示例

UriTemplate 类提供了用于处理共享公共结构的 URI 组的方法。 UriTemplate 示例演示与 UriTemplate 相关的以下关键概念:

  • 创建模板的语法。

  • 使用 UriTemplateBindByName 实例化 BindByPosition 中的 URI。

  • 作为 MatchBindByName 的反向操作的 BindByPosition

设置、生成和运行示例

  1. 若要生成 C# 或 Visual Basic .NET 版本的解决方案,请按照 Building the Windows Communication Foundation Samples中的说明进行操作。

  2. 要使用单机配置或跨计算机配置来运行示例,请按照运行 Windows Communication Foundation 示例中的说明进行操作。

另请参阅