HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee geeft u de hoofdmap van de inhoud moet worden gebruikt door de host. Als u wilt voorkomen dat de hoofdmap van de inhoud wordt overschreven door een standaardwaarde, moet u ervoor zorgen dat deze wordt aangeroepen nadat de standaardinstellingen zijn geconfigureerd.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ UseContentRoot(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, System::String ^ contentRoot);
public static Microsoft.Extensions.Hosting.IHostBuilder UseContentRoot(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, string contentRoot);
static member UseContentRoot : Microsoft.Extensions.Hosting.IHostBuilder * string -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseContentRoot (hostBuilder As IHostBuilder, contentRoot As String) As IHostBuilder
Parameters
- hostBuilder
- IHostBuilder
De IHostBuilder te configureren.
- contentRoot
- String
Pad naar hoofdmap van de toepassing.
Retouren
De IHostBuilder.