public Object? ConvertToArgumentType(
	CultureInfo culture,
	string? argumentValue
)Public Function ConvertToArgumentType ( 
	culture As CultureInfo,
	argumentValue As String
) As Object
Dim instance As CommandLineArgument
Dim culture As CultureInfo
Dim argumentValue As String
Dim returnValue As Object
returnValue = instance.ConvertToArgumentType(culture, 
	argumentValue)public:
Object^ ConvertToArgumentType(
	CultureInfo^ culture, 
	String^ argumentValue
)Conversion is done by one of several methods. First, if a TypeConverterAttribute was present on the constructor parameter, property, or method that defined the property, the specified TypeConverter is used. Otherwise, if the default TypeConverter for the ElementType can convert from a string, it is used. Otherwise, a static Parse(String, IFormatProvider) or Parse(String) method on the type is used. Finally, a constructor that takes a single parameter of type String will be used.
| ArgumentNullException | culture is | 
| CommandLineArgumentException | argumentValue could not be converted to the type specified in the ArgumentType property. |