共用方式為


WebAssemblyHostEnvironmentExtensions.IsDevelopment 方法

定義

檢查目前的主控環境名稱是否為 Development

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDevelopment(Microsoft::AspNetCore::Components::WebAssembly::Hosting::IWebAssemblyHostEnvironment ^ hostingEnvironment);
public static bool IsDevelopment (this Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment hostingEnvironment);
static member IsDevelopment : Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment -> bool
<Extension()>
Public Function IsDevelopment (hostingEnvironment As IWebAssemblyHostEnvironment) As Boolean

參數

hostingEnvironment
IWebAssemblyHostEnvironment

IWebAssemblyHostEnvironment 的執行個體。

傳回

如果環境名稱為 ,則為 True,否則為 Development false。

適用於