ObjectGears Help

           
Forum   ObjectGears (Version: 1.6.0.0)

OG data type - IApplication

Interface definition. Instance of object inheriting from this interface is passed on to the module for calling ObjecGears system functions.

Object properties 

Name Description
JSOG OG Default object for calling ObjectGears system functions.
string GetAppConfigParameterString(string key) Function returns text value of a parameter from the configuration file.
int? GetAppConfigParameterInt(string key) Function returns integer value of a parameter from the configuration file.
string GetConfigParameterString(string subKey) Function returns text value of a parameter from the configuration file for current module.
int? GetConfigParameterInt(string subKey) Function returns integer value of a parameter from the configuration file for current module.

 Configuration parameters are read from web.configu or ObjectGearsService.exe.config file depending on, if the call comes from web part of windows service.

If the parameter value cannot be converted to an integer, then exception is returned.

 

There is module code + underscore + subKey added at the beginning of the parameter for functions GetConfigParameterString and GetConfigParameterInt.

Therefore, if you call function GetConfigParameterString('par') from module with code MY, then parameter 'MY_par' is searched in the configuration file.

This website is using cookies files to provide services and analyse visits. You agree with that by using this website.     Further information