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

LoadFromFile() public static method

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

Same methods

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