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

LoadFromFile() public static method

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

Same methods

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