OleViewDotNet.COMRegistry.Save C# (CSharp) Method

Save() public method

public Save ( string path ) : void
path string
return void
        public void Save(string path)
        {
            using (FileStream stm = File.Open(path, FileMode.Create, FileAccess.Write))
            {
                BinaryFormatter formatter = new BinaryFormatter();
                formatter.Serialize(stm, this);
            }
        }

Usage Example

Ejemplo n.º 1
0
        private void SaveDatabase(bool save)
        {
            string filename = GetSaveFileName(save);

            if (String.IsNullOrWhiteSpace(filename))
            {
                return;
            }

            try
            {
                m_registry.Save(filename);
                UpdateTitle();
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
All Usage Examples Of OleViewDotNet.COMRegistry::Save