WebHostBuilderExtensions.UseSolutionRelativeContentRoot Methode

Definition

Überlädt

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Legt den Inhaltsstamm von relativ zum solutionRelativePath fest.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Legt den Inhaltsstamm von relativ zum solutionRelativePath fest.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Legt den Inhaltsstamm von relativ zum solutionRelativePath fest.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSolutionRelativeContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, string solutionRelativePath, string solutionName = "*.sln");
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder

Parameter

solutionRelativePath
String

Das Verzeichnis der Projektmappendatei.

solutionName
String

Der Name der Projektmappendatei, zu der der Inhaltsstamm relativ werden soll.

Gibt zurück

IWebHostBuilder

Die IWebHostBuilder.

Gilt für:

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Legt den Inhaltsstamm von relativ zum solutionRelativePath fest.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSolutionRelativeContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, string solutionRelativePath, string applicationBasePath, string solutionName = "*.sln");
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, applicationBasePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder

Parameter

solutionRelativePath
String

Das Verzeichnis der Projektmappendatei.

applicationBasePath
String

Der Stamm des App-Verzeichnisses.

solutionName
String

Der Name der Projektmappendatei, zu der der Inhaltsstamm relativ werden soll.

Gibt zurück

IWebHostBuilder

Die IWebHostBuilder.

Gilt für: