WebHostBuilderExtensions.UseSolutionRelativeContentRoot Methode

Definition

Überlädt

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Legt den Inhaltsstamm von relativ zum fest solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Legt den Inhaltsstamm von relativ zum fest solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Legt den Inhaltsstamm von relativ zum fest 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 Projektmappendatei, zu der der Inhaltsstamm relativ wird.

Gibt zurück

Die IWebHostBuilder.

Gilt für:

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Legt den Inhaltsstamm von relativ zum fest 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 Projektmappendatei, zu der der Inhaltsstamm relativ wird.

Gibt zurück

Die IWebHostBuilder.

Gilt für: