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 ArgumentConverterAttribute was present on the property or method that defined the argument, the specified ArgumentConverter is used. Otherwise, the type must implement ISpanParsableTSelf, implement IParsableTSelf, or have a static Parse(String, IFormatProvider) or Parse(String) method, or have a constructor that takes a single parameter of type String.
ArgumentNullException | culture is |
CommandLineArgumentException | argumentValue could not be converted to the type specified in the ArgumentType property. |