Click or drag to resize
weroSoft AG, Software
ArgumentStoreBaseGetArgumentSingleValueT Methode (String, T)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Gets the converted value of a particular arguments data.

Namensraum:  WeroSoft.Installation
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 2.1 Development Main
Syntax
C#
public T GetArgumentSingleValue<T>(
	string name,
	T defaultValue
)

Parameter

name
Typ: SystemString
Name of the argument to be used.
defaultValue
Typ: T
Default value which is returned if an error happened in this method, or if no argument is available.

Typenparameter

T
Type of the value to which the argument data shall be converted to.

Rückgabewert

Typ: T
Converted value or default value.
Anmerkungen
This method tries to convert the argument data of a particular argument to a specific type. Note that the method only supports converting a value to base types of .NET (like Boolean, integer) and enumerations as well. In any situation a value may not be converted, the method returns the default value. Ensure to check the arguments validity before using this method.
Siehe auch