Click or drag to resize

CommandLineGetArgument Method (String, Object, Type, IFormatProvider)

Gets a command line argument value by name.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Object GetArgument(
	string name,
	Object defaultValue,
	Type conversionType,
	IFormatProvider provider
)

Parameters

name
Type: SystemString
The argument name.
defaultValue
Type: SystemObject
The default value if the argument is not defined.
conversionType
Type: SystemType
The expected argument value type.
provider
Type: SystemIFormatProvider
The format provider.

Return Value

Type: Object
A typed value.
Exceptions
ExceptionCondition
ArgumentNullException name is null or conversionType is null.
See Also