共用方式為


HostBuilderContext.HostingEnvironment 屬性

定義

IHost 初始化的 IHostEnvironment

public:
 property Microsoft::Extensions::Hosting::IHostEnvironment ^ HostingEnvironment { Microsoft::Extensions::Hosting::IHostEnvironment ^ get(); void set(Microsoft::Extensions::Hosting::IHostEnvironment ^ value); };
public Microsoft.Extensions.Hosting.IHostEnvironment HostingEnvironment { get; set; }
member this.HostingEnvironment : Microsoft.Extensions.Hosting.IHostEnvironment with get, set
Public Property HostingEnvironment As IHostEnvironment

屬性值

適用於