IHostMetadata Interface

Definition

Represents host metadata used during routing.

C#
public interface IHostMetadata
Derived

Properties

Hosts

Returns a read-only collection of hosts used during routing. Hosts will be Unicode rather than punycode, and may have a port. An empty collection means any host will be accepted.

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0