共用方式為


WebAssemblyHostEnvironmentExtensions.IsStaging 方法

定義

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

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

參數

hostingEnvironment
IWebAssemblyHostEnvironment

IWebAssemblyHostEnvironment 的執行個體。

傳回

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

適用於