EnvironmentName Class

Definition

Caution

EnvironmentName has been deprecated. Use Microsoft.Extensions.Hosting.Environments instead.

Commonly used environment names.

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.Environments.

C#
[System.Obsolete("EnvironmentName has been deprecated. Use Microsoft.Extensions.Hosting.Environments instead.")]
public static class EnvironmentName
Inheritance
EnvironmentName
Attributes

Fields

Development

The name of the Development environment.

Production

The name of the Production environment.

Staging

The name of the Staging environment.

Applies to

Product Versions (Obsolete)
.NET (8 (package-provided), 9 (package-provided))
.NET Framework (4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided))
.NET Standard (2.0 (package-provided), 2.1 (package-provided))