EndpointHostHelpers.IsLocalhostTld 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.
Overloads
| IsLocalhostTld(String) |
Determines whether the specified host ends with ".localhost". |
| IsLocalhostTld(Uri) |
Determines whether the specified URI uses a host that is "localhost". |
IsLocalhostTld(String)
- Source:
- EndpointHostHelpers.cs
Determines whether the specified host ends with ".localhost".
public static bool IsLocalhostTld(string? host);
static member IsLocalhostTld : string -> bool
Public Shared Function IsLocalhostTld (host As String) As Boolean
Parameters
- host
- String
The host to check.
Returns
true if the host ends with ".localhost" (case-insensitive); otherwise, false.
Applies to
IsLocalhostTld(Uri)
- Source:
- EndpointHostHelpers.cs
Determines whether the specified URI uses a host that is "localhost".
public static bool IsLocalhostTld(Uri? uri);
static member IsLocalhostTld : Uri -> bool
Public Shared Function IsLocalhostTld (uri As Uri) As Boolean
Parameters
- uri
- Uri
The URI to check.
Returns
true if the host ends with ".localhost" (case-insensitive); otherwise, false.