共用方式為


WebAssemblyHostBuilder.HostEnvironment 屬性

定義

取得應用程式主機環境的相關資訊。

public:
 property Microsoft::AspNetCore::Components::WebAssembly::Hosting::IWebAssemblyHostEnvironment ^ HostEnvironment { Microsoft::AspNetCore::Components::WebAssembly::Hosting::IWebAssemblyHostEnvironment ^ get(); };
public Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment HostEnvironment { get; }
member this.HostEnvironment : Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment
Public ReadOnly Property HostEnvironment As IWebAssemblyHostEnvironment

屬性值

適用於