Dela via


IHostingEnvironment.EnvironmentName Property

Definition

Gets or sets the name of the environment. The host automatically sets this property to the value of the "ASPNETCORE_ENVIRONMENT" environment variable, or "environment" as specified in any other configuration source.

public:
 property System::String ^ EnvironmentName { System::String ^ get(); void set(System::String ^ value); };
public string EnvironmentName { get; set; }
member this.EnvironmentName : string with get, set
Public Property EnvironmentName As String

Property Value

Applies to