GH_SettingsServer
ReferencesA single instance of this class is maintained at module level under the accessor "Settings".
Constructors
GH_SettingsServer
#Create a new instance of the GH_SettingsServer class. The server will be associated with a settings xml file in the %ApplicationData%\Grasshopper\ directory.
GH_SettingsServer
#Create a new instance of the GH_SettingsServer class. The server will be associated with a settings xml file in the %ApplicationData%\Grasshopper\ directory. If a file with the same name already exists, its settings will be automatically loaded.
public GH_SettingsServer()
databaseName
The name of the settings server (equals the name of the xml file so it must adhere to FAT, FAT32 and NTFS naming conventions).
Properties
Methods
ConstainsEntry
#Tests to see if a given entry is stored in this settings database.
Returns: True if the entry exists, false otherwise.
EntryType
#Gets the type of a specific entry.
Returns: Type of entry. If entry doesn't exist, GH_SettingsType._unknown is returned.
Write
#Low-level serializer.
Returns: True on success, false on failure.
Implements: Write
WritePersistentSettings
#Store all settings in the xml file now. You must call this function if you want the current settings to persist between sessions.
public void WritePersistentSettings()