ATMLModelLibrary.model.equipment.VME.LoadFromFile C# (CSharp) Method

LoadFromFile() public static method

Deserializes xml markup from file into an VME object
public static LoadFromFile ( string fileName, VME &obj, Exception &exception ) : bool
fileName string string xml file to load and deserialize
obj VME Output VME object
exception System.Exception output Exception value if deserialize failed
return bool
        public static bool LoadFromFile(string fileName, out VME obj, out Exception exception)
        {
            exception = null;
            obj = default(VME);
            try
            {
                obj = LoadFromFile(fileName);
                return true;
            }
            catch (Exception ex)
            {
                exception = ex;
                return false;
            }
        }

Same methods

VME::LoadFromFile ( string fileName ) : VME
VME::LoadFromFile ( string fileName, VME &obj ) : bool