IHostingEnvironment.EnvironmentName Property

Definition

取得或設定環境的名稱。Gets or sets the name of the environment. 主機會自動將此屬性設定為組態中指定的 "environment" 索引鍵值。The host automatically sets this property to the value of the of the "environment" key as specified in configuration.

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

String

Applies to