protected override void InternalProcessRecord() { ExportTerms export = new ExportTerms(); XmlDocument xml = null; switch (ParameterSetName) { case "TaxonomySession": xml = export.Export(TaxonomySession.Read()); break; case "TermStore": xml = export.Export(TermStore.Read()); break; case "Group": xml = export.Export(Group.Read()); break; case "TermSet": xml = export.Export(TermSet.Read()); break; case "Term": xml = export.Export(Term.Read()); break; } if (xml == null) { return; } if (!string.IsNullOrEmpty(OutputFile)) { xml.Save(OutputFile); } else { WriteResult(xml); } }
protected override void InternalProcessRecord() { ExportTerms export = new ExportTerms(); XmlDocument xml = null; switch (ParameterSetName) { case "TaxonomySession": xml = export.Export(TaxonomySession.Read()); break; case "TermStore": xml = export.Export(TermStore.Read()); break; case "Group": xml = export.Export(Group.Read()); break; case "TermSet": xml = export.Export(TermSet.Read()); break; case "Term": xml = export.Export(Term.Read()); break; } if (xml == null) return; if (!string.IsNullOrEmpty(OutputFile)) xml.Save(OutputFile); else WriteResult(xml); }