wwAppConfiguration.ReadKeysFromConfig

Static factory method that returns an instance of a configuration object. This version reads the default config section in the configuration file.

public static wwAppConfiguration ReadKeysFromConfig(String Filename,Type ConfigType)

Return Value

wwAppConfiguration

Parameters

String Filename
The location where the config file is to be read from.

Type ConfigType
Type of the config object.

Remarks

Application must have permissions to read this file. If permissions are not available the default values are returned.

Example

WebStoreConfig Config = (WebStoreConfig) 
      WebStoreConfig.ReadKeysFromConfig(typeof(WebStoreConfig));

int ConnectMode = Config.ConnectMode;
Config.ConnectMode = 2;
...
Config.WriteKeysToConfig();

Overloads:


See also:

Class wwAppConfiguration

© West Wind Technologies, 1996-2018 • Updated: 04/21/04
Comment or report problem with topic