Update Managed Metadata Field in SharePoint 2013
The following example update a term store field that allow multiple values. using (SPSite site = new SPSite("siteUrl")) { using (SPWeb web = site.OpenWeb()) { PublishingWeb pubWeb = PublishingWeb.GetPublishingWeb(web); PublishingPageCollection pubPages = pubWeb.GetPublishingPages(); string metadata = String.Empty; foreach (PublishingPage pubPage in pubPages) { ...