EnvironmentName Class

Definition

Caution

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

Commonly used environment names.

C#
public static class EnvironmentName
C#
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.Environments.", false)]
public static class EnvironmentName
Inheritance
EnvironmentName
Attributes

Fields

Development

A string constant for Development environments.

Production

A string constant for Production environments.

Staging

A string constant for Staging environments.

Applies to

Product Versions (Obsolete)
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2 (3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0)