共用方式為


HostApplicationBuilder.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

屬性值

實作

適用於