An NDoc Documented Class Library

Preferences.GetProperty Method (String, Object, Type)

Gets a property

public abstract object GetProperty(
   string path,
   object defaultValue,
   Type returnType
);

Parameters

path
defaultValue
The default property value. If no previous property exists, or the preferences store is unavailable, this value will be returned.
returnType
The return type. 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.

Return Value

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

See Also

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