Click or drag to resize

BasicAppSettings Methods

The BasicAppSettings Type exposes the following members.

Methods
 NameDescription of the
Protected MethodDirectoryCreate Creates a complete directory path if this path or a part of it is of which does not exist. Returns the part of the directory path, which goes up to and including the first of the newly created directories or zero. The result of this routine can be used to precisely determine the part of a directory path that has been newly created.
Public MethodDispose Public method for cleaning up.
Protected MethodDispose(Boolean) Finalise work, reset timer if necessary.
Protected MethodFinalise Destructor
(Overwrites ObjectFinalise)
Public MethodGetLoadedAssemblies Returns a dictionary that is used for all assemblies loaded in the application. contains the FullName and the assembly. Can be helpful for troubleshooting in certain cases.
Note: If the switch "DumpLoadedAssemblies" = true, the keys of this dictionary (FullName) are logged in "Dispose".
Public MethodGetParametersSources Returns a dictionary containing the name of the source for each parameter. Can be helpful for troubleshooting in certain cases.
Note: If the switch "DumpAppSettings" = true, this dictionary is logged in "Dispose".
Public MethodGetStringValue Returns exactly one value for a key. If there is no value for the key, defaultValue is returned.
Public MethodGetStringValues Returns a string array for a key. If there is no value for the key, defaultValue is returned.
Public MethodGetValueT Returns exactly one value for a key. If there is no value for the key, defaultValue is returned. Wildcards of the form %Name% are replaced recursively if possible; An attempt is made to cast the determined string value to the return type T.
Public MethodGetValuesT NOT IMPLEMENTED! Returns an array of values for a key. If there is no value for the key, defaultValue is returned. Wildcards of the form %Name% are replaced recursively if possible; An attempt is made to cast the determined string value to the return type T.
Public MethodLoadSettings Loads the system settings during Initialization or loads them again on request.
Public MethodReplaceWildcards Replaces wildcards in the format %Name% with their runtime values.
Protected MethodSetDefaultSQLDirectories Sets the default directories for the Microsoft SQL Server.
Public MethodSetRegistryBasePath Sets the registry access key for all subsequent accesses to the passed base path, if the passed registryBasePath can be converted error-free into a corresponding equivalent from registry keys.
Back to the top
See also