'Declaration
Public Overloads Function GetProperty( _ ByVal name As System.String, _ ByVal defaultValue As System.Object, _ ByVal returnType As System.Type _ ) As System.Object
'Usage
Dim instance As Preferences Dim name As System.String Dim defaultValue As System.Object Dim returnType As System.Type Dim value As System.Object value = instance.GetProperty(name, defaultValue, returnType)
public System.object GetProperty( System.string name, System.object defaultValue, System.Type returnType )
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.
- 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).