Skip to main content
Skip table of contents

GetEngineConfigSetting Method

Gets a value from the engine app.config file by key name.

CODE
public string GetEngineConfigSetting(string key);

Classes: Engine


Parameters

string key

Key of the config value.

Returns

string

String value from the config file.


Example

The following example demonstrates retrieving the CaptureAPI url from the executing engine app.config file.

CODE
var captureApiUrl = Engine.GetEngineConfigSetting("CaptureApi");

Remarks

This method returns a null if no key is found that corresponds with the given parameter.

Although this method provides shorthand for retrieving conig values from the engine web.config file, the full configuration file is loaded in the executing app domain and can be accessed through other means such as the ConfigurationManager class in .NET framework.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.