4 Protocol Examples

The examples in this section demonstrate common usage scenarios around creating, adding, updating, and deleting terms in a term set. All of the examples use a group and term set that contains a hierarchical collection of conference room terms. The complete hierarchy is listed in the following table.

Name

Type

Id

Conferences

Group

{6F3CA467-B915-4901-A38E-907D4A048712}

   Conference Rooms

Term Set

{E143C875-5A3C-4C38-B13F-ABE2CEDC1573}

      Auditoriums

Term

{63161CAE-A38C-4C3B-976B-71F76506FD5B}

         Auditorium C

Term

{B72D8AE6-E6A6-47FE-82D8-099F070FDD37}

         Auditorium D

Term

{03AE29CE-739C-491B-A119-C79A5AA7FA0C}

         Auditorium E

Term

{984DC45A-139F-426F-B0BF-AA1CD275E024}

      Halls

Term

{AA770CFB-EB06-4091-9860-9FB6913A4FCF}

         Hall A

Term

{80938290-52B2-4713-B32D-6E55D194E2EA}

         Hall B

Term

{6CB787F9-5339-4024-9EFC-6D8BBC24C51D}

         Hall C

Term

{28E647DB-BECF-4CAA-83EC-1A5293CE127A}

The example in section 4.1 creates the entire taxonomy using the ids as described in the previous table as needed. The remaining examples demonstrate adding, modifying, or removing terms from the term set. All of the examples use a TermStore (section 3.1.5.23) named "Managed Metadata Service Application Proxy".