HeaderParser<T>.TryParse(StringValues, T, String) Method

Definition

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.

Applies to