TimeSeriesLibrary.TSLibrary.XmlImportFromString C# (CSharp) Method

XmlImportFromString() public method

This method reads the given XML string and stores each time series that is defined in the XML file to a new TSImport object that is added to the given List of TSImport objects.
public XmlImportFromString ( String xmlString, List tsImportList ) : int
xmlString String the string containing XML that defines one or more time series to import
tsImportList List A List of TSImport objects that the method adds to. One item is added to the List /// for each time series that is processed in the XML string. The List must already be instantiated before calling /// this method. The method does not change any items that are already in the List.
return int
        public int XmlImportFromString(String xmlString, List<TSImport> tsImportList)
        {
            // Construct new TSXml object without SqlConnection object and table name
            TSXml tsXml = new TSXml();
            // Method in the TSXml object does all the work
            return tsXml.ReadAndStore(null, xmlString, tsImportList, false, true);
        }