Share via


HostingEnvironmentExtensions.IsStaging(IHostingEnvironment) メソッド

定義

現在のホスティング環境名が Staging であるかどうかを確認します。

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

パラメーター

hostingEnvironment
IHostingEnvironment

IHostingEnvironment のインスタンス。

戻り値

環境名が の場合は True、それ以外の場合は Stagingfalse。

適用対象