# GH_SettingsServer class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public sealed class GH_SettingsServer : GH_ISerializable
```

A single instance of this class is maintained at module level under the accessor "Settings".

## Constructors

- [GH_SettingsServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/ctor.md): (2 overloads) Create a new instance of the GH_SettingsServer class. The server will be associated with a settings xml file in the %ApplicationData%\Grasshopper\ directory.

## Properties

- [Count](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/count.md): Gets the total number of settings stored in this database.
- [DatabaseName](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/databasename.md): Gets the name of this settings database.

## Methods

- [Clear](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/clear.md): Destroy all settings.
- [ConstainsEntry](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/constainsentry.md): Tests to see if a given entry is stored in this settings database.
- [DeleteValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/deletevalue.md)
- [EntryNames](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/entrynames.md): Gets a list of all the entry names in this settings.
- [EntryType](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/entrytype.md): Gets the type of a specific entry.
- [GetValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/getvalue.md): (10 overloads)
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/read.md): Low-level deserializer.
- [SetValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/setvalue.md): (11 overloads)
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/write.md): Low-level serializer.
- [WritePersistentSettings](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-settingsserver/writepersistentsettings.md): Store all settings in the xml file now. You must call this function if you want the current settings to persist between sessions.
