IHostEnvironment.EnvironmentName 属性

定义

获取或设置环境的名称。Gets or sets the name of the environment. 主机自动将此属性设置为配置中指定的“环境”键的值。The host automatically sets this property to the value 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

属性值

String

适用于