IWebHostEnvironment Schnittstelle

Definition

Stellt Informationen zur Webhostingumgebung bereit, in der eine Anwendung ausgeführt wird.

public interface class IWebHostEnvironment : Microsoft::Extensions::Hosting::IHostEnvironment
public interface IWebHostEnvironment : Microsoft.Extensions.Hosting.IHostEnvironment
type IWebHostEnvironment = interface
    interface IHostEnvironment
Public Interface IWebHostEnvironment
Implements IHostEnvironment
Implementiert

Eigenschaften

WebRootFileProvider

Ruft die IFileProvider-Schnittstelle ab, die auf die WebRootPath-Eigenschaft zeigt, oder legt diese fest.

WebRootPath

Ruft den absoluten Pfad zum Verzeichnis ab, das die webservierbaren Anwendungsinhaltsdateien enthält, oder legt diesen fest.

Gilt für: