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

LoadFromFile() public static method

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

Same methods

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