1. OG data type - IApplication

    Article: AN0001701Updated:

    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.

×