'Declaration
Public MustInherit Class Preferences
'Usage
Dim instance As Preferences
public abstract class Preferences
'Declaration
Public MustInherit Class Preferences
'Usage
Dim instance As Preferences
public abstract class Preferences
Preferences prefWriter = Preferences.GetUserNode("Personal Details"); prefWriter.SetProperty("Name", "Joe Bloggs"); prefWriter.SetProperty("Age", 56); prefWriter.Close();
Preferences prefReader = Preferences.GetUserNode("Personal Details"); string name = prefReader.GetString("Name", "Anonymous"); int age = prefReader.GetInt32("Age", 0); prefReader.Close();
Preferences prefReader = Preferences.GetUserNode("Default Settings", "myxmlfile.xml"); string name = prefReader.GetString("Name", "Anonymous"); int age = prefReader.GetInt32("Age", 0); prefReader.Close();
System.Object
Genghis.Preferences
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2