WebHostBuilderExtensions.UseSolutionRelativeContentRoot Methode

Definition

Überlädt

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Legt den Inhaltsstamm relativ zum solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Legt den Inhaltsstamm relativ zum solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Legt den Inhaltsstamm relativ zum solutionRelativePath.

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 Lösungsdatei.

solutionName
String

Der Name der Lösungsdatei, um den Inhaltsstamm relativ zu machen.

Gibt zurück

IWebHostBuilder

Die IWebHostBuilder.

Gilt für:

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Legt den Inhaltsstamm relativ zum solutionRelativePath.

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 Lösungsdatei.

applicationBasePath
String

Der Stamm des App-Verzeichnisses.

solutionName
String

Der Name der Lösungsdatei, um den Inhaltsstamm relativ zu machen.

Gibt zurück

IWebHostBuilder

Die IWebHostBuilder.

Gilt für: