An NDoc Documented Class Library

Preferences.GetProperty Method (String, Object)

Gets a property

public object GetProperty(
   string name,
   object defaultValue
);

Parameters

name
The property name.
Use slash (/) to logically separate groups of settings.
defaultValue
The default property value. If no previous property exists, or the preferences store is unavailable, this value will be returned.

Return Value

Returns the property value (with the same type as defaultValue).

Remarks

The return type is converted to the same type as the defaultValue argument before it is returned. Therefore, this must be a type supported by the System.Convert class. The supported types are: Boolean, Char, SByte, Byte, Int16, Int32, Int64, UInt16, UInt32, UInt64, Single, Double, Decimal, DateTime and String.

See Also

Preferences Class | Preferences Members | Genghis Namespace | Preferences.GetProperty Overload List