HostingEnvironmentExtensions.IsDevelopment(IHostingEnvironment) Metodo

Definizione

Controlla se il nome dell'ambiente di hosting corrente è Development.

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

Parametri

hostingEnvironment
IHostingEnvironment

Istanza di IHostingEnvironment.

Restituisce

True se il nome dell'ambiente è Development, in caso contrario false.

Si applica a