Dela via


HostHeaderValue.TryParse(String, HostHeaderValue) Method

Definition

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.

Applies to