PortalModuleBase from which your module controls will inherit provides the read only public property Settings which is a hashtable keyed by the setting name. An individual setting may be retrieved and cast or converted to its appropriate type as follows:
Dim PageSize As Integer = Convert.ToInt32(Me.Settings("PageSize"))
Dim EnableModeration As Boolean = Convert.ToBoolean(Me.Settings("EnableModeration"))
When I have more than a couple of module settings, I prefere to define a configuration class which loads all of the appropriate settings either in the module's Page_Load event handler or on demand and makes them available as public properties. Also, to more easily manage type casting and provide default values in case the particular module setting key does not exist, my Utilities class defines a number of overloaded GetValue functions, one for each data type. For example, for the boolean:
Public Overloads Shared Function GetValue(ByVal setting As Object, ByVal defaultvalue As Boolean) As Boolean
If setting Is Nothing Then
Return defaultvalue
Else
Return Convert.ToBoolean(setting)
End If
End Function
Obtaining a module setting then becomes (in the configuration class):
Dim _EnableModeration As Boolean
_EnableModeration = Utilities.GetValue(Settings("EnableModeration"), False)
Public Property EnableModeration() As Boolean
Get
Return _EnableModeration
End Get
Set (ByVal value As Boolean)
_EnableModeration = value
End Set
End Property