TimeSeriesLibrary.TSLibrary.XmlImport C# (CSharp) Метод

XmlImport() публичный Метод

This method reads the given XML file 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 XmlImport ( String xmlFileName, List tsImportList ) : int
xmlFileName String The file name (with path) of an XML file 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 file. The List must already be instantiated before calling /// this method. The method does not change any items that are already in the List.
Результат int
        public int XmlImport(String xmlFileName, 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(xmlFileName, null, tsImportList, false, true);
        }