HeaderParser<T>.TryParse(StringValues, T, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses a raw header value to a strong type.
public abstract bool TryParse (Microsoft.Extensions.Primitives.StringValues values, out T? result, out string? error);
abstract member TryParse : Microsoft.Extensions.Primitives.StringValues * 'T * string -> bool
Public MustOverride Function TryParse (values As StringValues, ByRef result As T, ByRef error As String) As Boolean
Parameters
- values
- StringValues
The original value.
- result
- T
A resulting value.
- error
- String
An error if parsing failed.
Returns
Parsing result.