UriTemplate 示例

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

  • 创建模板的语法。
  • 使用 BindByNameBindByPosition 实例化 UriTemplate 中的 URI。
  • 作为 BindByNameBindByPosition 的反向操作的 Match

提示

此示例需要安装 .NET Framework 3.5 版才能生成和运行。若要打开项目和解决方案文件,需要使用 Visual Studio 2008。

设置、生成和运行示例

  1. 请确保已经执行了 Windows Communication Foundation 示例的一次性安装过程

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

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

另请参见

任务

UriTemplate 表示例
UriTemplate 表调度程序示例

Send comments about this topic to Microsoft.
© 2007 Microsoft Corporation. All rights reserved.