GConf.Client Class
Basic functions to initialize GConf and get/set values.

See Also: Client Members

Syntax

public class Client : ClientBase

Remarks

The following example attempts to retrieve a setting from GConf, and set a default value otherwise.

Example

Example

string MyVal;

GConf.Client gconfClient = new GConf.Client ();

try
{
	MyVal = (string) gconfClient.Get ("/apps/monoapps/SampleApp/setting1"));
}
catch (GConf.NoSuchKeyException)
{
	gconfClient.Set ("/apps/monoapps/SampleApp/setting1", "sample");        
}
	  

Requirements

Namespace: GConf
Assembly: gconf-sharp (in gconf-sharp.dll)
Assembly Versions: 2.20.0.0