Export (0) Print
Expand All

UriTemplate Sample

The UriTemplate class provides methods for working with sets of URIs that share a common structure. This sample demonstrates the following key concepts relating to UriTemplate:

  • Syntax for creating templates.

  • Instantiating URIs from a UriTemplate using BindByName and BindByPosition.

  • Match, which is the inverse operation of BindByName and BindByPosition.

To set up, build, and run the sample

  1. To build the C# or Visual Basic .NET edition of the solution, follow the instructions in Building the Windows Communication Foundation Samples.

  2. To run the sample in a single- or cross-machine configuration, follow the instructions in Running the Windows Communication Foundation Samples.

Bb943469.Important(en-us,VS.100).gif Note:
The samples may already be installed on your computer. Check for the following (default) directory before continuing.

<InstallDrive>:\WF_WCF_Samples

If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.

<InstallDrive>:\WF_WCF_Samples\WCF\Basic\Web\UriTemplate

See Also

Community Additions

ADD
Show:
© 2014 Microsoft