HostDefaults Class

Definition

Constants for HostBuilder configuration keys.

C#
public static class HostDefaults
Inheritance
HostDefaults

Fields

ApplicationKey

The configuration key used to set ApplicationName.

ContentRootKey

The configuration key used to set ContentRootPath and ContentRootFileProvider.

EnvironmentKey

The configuration key used to set EnvironmentName.

Applies to

Produk Versi
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)