InputNumber<TValue>.TryParseValueFromString(String, T, String) Method

Definition

Parses a string to create an instance of T. Derived classes can override this to change how CurrentValueAsString interprets incoming values.

C#
protected override bool TryParseValueFromString (string value, out T result, out string validationErrorMessage);

Parameters

value
String

The string value to be parsed.

result
T

An instance of T.

validationErrorMessage
String

If the value could not be parsed, provides a validation error message.

Returns

True if the value could be parsed; otherwise false.

Applies to

Produkt Versioner
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0