Per location view settings using SharePoint Object Model

You have to set the library.RootFolder.Properties["client_MOSS_MetadataNavigationSettings"] property to get change the per location view settings using the SharePoint Object Model. 1: using (SPSite site = new SPSite("http://blre3r15-4")) 2: { 3: //TaxonomySession session = new TaxonomySession(site); 4: using (SPWeb web = site.OpenWeb()) 5: { 6: SPList library = web.Lists["shared documents"]; 7: SPContentTypeCollection lsl = library.ContentTypes; 8:…

1