Home Notices Documents Classes Download Others Rice
Classes  >  preference  >  Save(string)
preference class : Save(string) method

Description

Stores user defined preferences to file.

Syntax

preferenceInstance.Save(string path)

Arguments

ClassNameDescription
stringpathPath of a file.

Return value

None.

Sample code

1:

preference pref = new preference();

2:

pref.Set("some.preference.entry", "some value"); // It makes new entry;

2:

...

2:

string path = "c:\somewhere...";

3:

pref.Save(path);

Notes

The argument should be the full path to the file.

Links for reference

None.

Copyright © Rice All rights reserved.