HostHeaderValue.TryParse(String, HostHeaderValue) 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 host header value.
public static bool TryParse (string value, out Microsoft.AspNetCore.HeaderParsing.HostHeaderValue result);
static member TryParse : string * HostHeaderValue -> bool
Public Shared Function TryParse (value As String, ByRef result As HostHeaderValue) As Boolean
Parameters
- value
- String
The value to parse.
- result
- HostHeaderValue
The parsed result.
Returns
true
if the value was parsed successfully, false
otherwise.