JAMS Developer Guide
GetProperty(String,Object,Type) Method


Genghis Namespace > Preferences Class > GetProperty Method : GetProperty(String,Object,Type) Method
The property name.
Use slash (/) to logically separate groups of settings.
The default property value. If no previous property exists, or the preferences store is unavailable, this value will be returned.
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.
Gets a property
Syntax
'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).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Preferences Class
Preferences Members
Overload List