共用方式為


IHostApplicationBuilder.Environment 屬性

定義

取得應用程式執行所在的主控環境相關信息。

public:
 property Microsoft::Extensions::Hosting::IHostEnvironment ^ Environment { Microsoft::Extensions::Hosting::IHostEnvironment ^ get(); };
public Microsoft.Extensions.Hosting.IHostEnvironment Environment { get; }
member this.Environment : Microsoft.Extensions.Hosting.IHostEnvironment
Public ReadOnly Property Environment As IHostEnvironment

屬性值

適用於