public XmlDocument Export(TaxonomySession ts) { if (ts == null) { throw new ArgumentNullException("ts", "The TaxonomySession object is null."); } XmlElement element = _xml.CreateElement("TermStores"); _xml.AppendChild(element); var tsc = ts.TermStores; if (!ts.IsObjectPropertyInstantiated("TermStores") || !ts.TermStores.AreItemsAvailable) { _ctx.Load(tsc); _ctx.ExecuteQuery(); } foreach (TermStore termStore in tsc) { LoadLanguages(termStore); Export(element, termStore); } return(_xml); }
public XmlDocument Export(TaxonomySession ts) { if (ts == null) throw new ArgumentNullException("ts", "The TaxonomySession object is null."); XmlElement element = _xml.CreateElement("TermStores"); _xml.AppendChild(element); var tsc = ts.TermStores; if (!ts.IsObjectPropertyInstantiated("TermStores") || !ts.TermStores.AreItemsAvailable) { _ctx.Load(tsc); _ctx.ExecuteQuery(); } foreach (TermStore termStore in tsc) { LoadLanguages(termStore); Export(element, termStore); } return _xml; }