UtilAppConfigGetAppConfigSettingT(String, String, String, String) Method
Gets the value of a setting declared in the application configuration file (app.config)
of the specified application.
Namespace: DevCase.Core.Diagnostics.VisualStudio.SolutionAssembly: 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 = ""
)
Public Shared Function GetAppConfigSetting(Of T) (
sectionName As String,
elementName As String,
propertyName As String,
Optional exePath As String = ""
) As T
Dim sectionName As String
Dim elementName As String
Dim propertyName As String
Dim exePath As String
Dim returnValue As T
returnValue = UtilAppConfig.GetAppConfigSetting(sectionName,
elementName, propertyName, exePath)
public:
generic<typename T>
static T GetAppConfigSetting(
String^ sectionName,
String^ elementName,
String^ propertyName,
String^ exePath = L""
)
static member GetAppConfigSetting :
sectionName : string *
elementName : string *
propertyName : string *
?exePath : string
(* Defaults:
let _exePath = defaultArg exePath ""
*)
-> 'T
No code example is currently available or this language may not be supported.
- 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.
- T
-
The type.
T
If the Section, the Element, or the Property doesn't exist, the return value is
,
otherwise, the value.
This is a code example.
No code example is currently available or this language may not be supported.
Dim result As Boolean = GetAppConfigSetting(Of Boolean)("sectionName", "elementName", "propertyName")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.