UtilAppConfigGetAppConfigSettingT(String, String, String, String) Method

Gets the value of a setting declared in the application configuration file (app.config) of the specified application.

Definition

Namespace: DevCase.Core.Diagnostics.VisualStudio.Solution
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static T GetAppConfigSetting<T>(
	string sectionName,
	string elementName,
	string propertyName,
	string exePath = ""
)

Parameters

sectionName  String
The name of the section.
elementName  String
The name of the element.
propertyName  String
The name of the property.
exePath  String  (Optional)
The executable path of the current or an external .NET application. If any path is specified, it assumes the current application.

Type Parameters

T
The type.

Return Value

T
If the Section, the Element, or the Property doesn't exist, the return value is , otherwise, the value.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also